In my apps i have a customs Listview with an adapter. In my list view i added a checkbox with focusable=false to make sure the listItem is still focusable. On the OnCheckedChangeListener i call list.setItemChecked to make sure it trigger the contextual menu. When a row is selected (not with the checkbox) it's starting an activity. (To Edit the row content)

In my activity i have these lines to start the contextual menu when an items is selected (with the checkbox)

The problems is because of CHOICE_MODE_MULTIPLE_MODAL when the contextual menu is shown i'm not able to click on row again. When i click on row it only select or unselect rows.

I was thinking to use CHOICE_MODE_MULTIPLE instead of CHOICE_MODE_MULTIPLE_MODAL and start the action by myself, but i don't know if there is a better way to do what i want to do.

In fact, what i want is exactly like the Gmail apps. You can select rows to have custom action (delete, share, whatever), but you still can click on a row to see the email. (even if the contextual menu is poped out)

Thanks in advance !

Ps. English is not my first language, but i'm pretty sure you can understand what i'm saying. (So sorry in advance for english mistake)

Edit added some code, but i just want to understand what would be the best to do. I know this code use like half the old method where you couldn't click a row when the contextual menu is open and half of the refactor i did to manually trigger the actionbar
http://pastebin.com/Tig0qYcN

show some code with what you have done, the adapter specifically
–
tyczjJan 23 '13 at 20:04

@tyczj I added some code, but i don't think it will really help you, i'm using basic stuff and i only want to know a way to do it. My code is working but with the bug of cannot click on a row while the context menu is open. And if i change to CHOICE_MODE_MULTIPLE, the MultiChoiceModeListener callback will not be trigger by himself.
–
Kar0tJan 23 '13 at 20:24