Hello, I am trying to implement a list view where each row has two buttons. Handling regular button clicks is no issue, however I'd also like to have a long press for both buttons where a context menu is shown. The same menu should be shown, however choosing an entry should be certainly specific to the chosen button.
Using registerForContextMenu() in the activity is no problem. I can also easily get the entry position. However I do not seem to be able to find out which button brought it up. I tried different approaches (registering and showing the menu where the adapter is creating the row view, ....) but all of them didnt lead anywhere and either didnt get me the button either or even lost the position information. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/8f74b7a2-e26b-42b6-a916-f863eb980199%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

