I have a button and you want to use the LongClickListener to get a click on the coordinate button when the button is positioned. How can I get in LongClickListener or possibly another X, Y method Click / Mouse coordinates.
I tried it using OnTouchListener, which works. But the problem is that TouchListener responds to every click, and not to the way I want only when clicked.
source share