Saturday, May 21, 2011

[android-developers] Does Spinner support multiple view types for its rows?

I have my own sub-class of BaseAdapter. I use Spinner#setAdapter to
set the adapter to my sub-class. However, #getViewTypeCount and
#getItemViewType do not get called. I see that Spinner#DropDownAdapter
delegate most calls to the injected adapter, except for
#getViewTypeCount and #getItemViewType. So it seems that Spinner does
not intend to support different rows using different view types. Is
this by design? What is the reason for this?

Thanks
Shri

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate