Consider an Android ListView with a context menu set up with registerForContextMenu. The context menu of a ListView item is shown when the user long taps over the item view.
Additionally, I would like to show the context menu when the user taps (not long taps) on the item (if certain conditions are met). Is it possible to do this? How?
I managed to solve this by browsing the Android source code. Here’s what I did: