2

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?

Community
  • 1
  • 1
Student Student
  • 960
  • 2
  • 14
  • 24

0 Answers0