I am aware that you can extend BaseAdapter and override the getViewTypeCount()
and getItemViewType(postion)
methods and get various row layouts that way.
However, I have just done a tutorial in which ArrayAdapter was extended and getView(int position, View convertView, ViewGroup parent)
was the only method overriden.
It seems to me a lot simpler just to follow this approach and use the position maybe with an if/switch to determine the view inflated for a given row.
Is that a correct assumption or are there problems with this approach?
Cheers