I'm writing a class that implements ListAdapter.

I'm looking at this method:


-----------------------------------
public abstract int getViewTypeCount ()
Since: API Level 1

Returns the number of types of Views that will be created by getView(int, 
View, ViewGroup). Each type represents a set of views that can be converted 
in getView(int, View, ViewGroup). If the adapter always returns the same 
type of View for all items, this method should return 1.
This method will only be called when when the adapter is set on the the 
AdapterView.

Returns
The number of types of Views that will be created by this adapter

------------------------------------

Can someone help me understand why I must implement this method?  It seems 
like it should not be necessary to do this.

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

Reply via email to