Use view as base container Android
<p>Here is the scope. I am trying to create a base class you will be subclassing and running into some snags. I want to create a method that returns a view so it can be overridden by any of its subclasses such as listview, gridview, textview, etc. Not sure if that is even possible or if I am going about it the wrong way, but here is the code below. Thank you for your time.</p>

<p>This is the base view method in my class. </p>

<pre><code>    View backViewController()
{
    return null;
}
</code></pre>

<p>Here is the subclass.</p>

<pre><code>@Override
    View backViewController()
{
    MenuList = (ListView) findViewById(R.id.backView);
    return MenuList;
}
</code></pre>

<p>With MenuList being a ListView I created in the subclass and trying to use in place of the base View. The error I am receiving is "The return type is incompatible"</p>
