How do I implement onItemLongClick and onItemClick for a GridView so that GridView items respond to both events?
onItemLongClick
onItemClick
I found that the trick is in the return value of the longclick listener call back. If you return true, onclick will not be called after the longclick is called and simple click will invoke only onclick. It worked fine for me.
onclick