How to implement onItemLongClickand onItemClickfor the GridView, the elements GridView responded to the two events?
onItemLongClick
onItemClick
I found that the trick is in the return value of the longclick listener call. If you return true, onclickit will not be called after the longclick call, and a simple click will only call onclick. It worked for me.
onclick