I have a listview. What I would like to achieve is that when I longclick any item it will show a dialog menu. However I have a click listener as well. it gets triggered after long click. How Can I cancel that or is there a way of ignoring clcik action for longclick.
Thanks
Check this out:
There is a specific method for
setOnLongClickListener. Just make sure that yousetLongClickableto be true for yourListView! You need to separate the listeners you define for a normal click and a long click.Other than that, try posting some of your code. It will allow the community to better help you.