In your onItemLongClick() method, return true to indicate that you used the click event and cannot be passed to other listeners.
According to the docs, the return value is described as
boolean true if the callback consumes a long click, false otherwise
Returning true will NOT pass a long click event, which is also a click event, to the OnItemClickListener .
Rohan source share