There is support for this:

- Override getViewTypeCount in the adapter, return how many types of views are needed.

- Override getItemViewType in the adapter, return the type of view for a particular item.

- ListView will take these in consideration when recycling views, getView will only recycle views if they are of the same type.

-- Kostya

13.09.2010 17:28, manigault пишет:
Hi all i want to implement listview with uses different xml layouts
for rows depending on underlying item. A non optimal solution will be
int getView method just to inflate every time a new view depending on
the item from the adapter. Is there a better way to do this ?



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to