Android GridView OnItemLongClick listener called after OnItemClick
问题 Basically I want to show a different context menu when the user short clicks or long clicks on a cell in the grid view. The issue I have is that if the user short clicks the OnItemClick listener is called and I see the debugger reach the code that shows the context menu but rather than moving from there to onCreateContextMenu it goes to onItemLongClick. I have tried using a Boolean to prevent the long click code being executed which does prevent that code being executed, however even when