Thanks Mark, I will give it a go!

On Jun 11, 12:42 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> Andr wrote:
> > What I don't know if it's possible is if I can have two different
> > context menus for the two lists?
>
> Yes.
>
> > And second, is there a way to check in which of the two lists the user
> > has selected an item?
>
> Yes, with difficulty.
>
> Cast the MenuInfo you get in onContextItemSelected() to an
> AdapterView.AdapterContextMenuInfo. Then, the targetView field will be
> the row View the user long-tapped upon. From there, you can use
> getParent() to find the ListView, should you need it.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_
> Version 1.6 Available!

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