Why do you switch adapters? Do they represent entirely different data?
-- Kostya
22.02.2011 13:45, Mark Carter пишет:
I have a ListView where I often swap in and out various adapters of
various types. Some adapters display items of varying types.
When onItemClick() is called, I check to see which adapter is being
used and then direct flow control accordingly. Further
querying/inspecton of the adapter is sometimes required when the
adapter contains items of varying types.
However, it seems that the ListAdapter knows best what it is
displaying and so is better placed to handle the click method than the
ListView.
OTOH, maybe the adapter is purely there to "adapt" one type of data to
another and so click logic should be handled elsewhere.
Any thoughts?
--
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
--
Kostya Vasilyev -- 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