Android,Using ConvertView in Heterogeneous List Adapters?

341 Views Asked by At

Docs say:

... Heterogeneous lists can specify their number of view types, so that this View is always of the right type (see getViewTypeCount() and getItemViewType(int)).

I tried this way to create Heterogeneous List Adapters and I had no problem.But I saw this post and this web page.They say it may be occurs problems:The wrong type of ConvertView.They propose to check if type of convertview is true or not? And this is inconsistent with Docs.

My questions:

When we ovrride getViewTypeCount() and getItemViewType(int) is it possible that convertview be from incorrect type?

0

There are 0 best solutions below