BTW, support for MergeAdapter is best on the [cw-android] Google Group:

http://groups.google.com/group/cw-android

I try not to clutter up the main lists with CommonsWare-specific
stuff. Besides, I'm more likely to notice the question. :-)

On Fri, Nov 26, 2010 at 8:14 AM, Neilz <[email protected]> wrote:
> For each of the adapters that I add to the MergeAdapter, I want
> different actions when I click the item. Currently I have no way, it
> seems, to tell what's been clicked, and which list it came from.

getItem() will return to you the Object corresponding to the position
you supply. And, I just checked in a change that added a getAdapter()
method that, given the position, will return the ListAdapter
associated with it. Note that this might not be one of your adapters,
if you used addView().

The actual OnItemClickListener stuff is at the ListView level, so the
MergeAdapter is going to be ignorant of any of that.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
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