Pretty simple question: I have a button which changes appearance on ACTION_DOWN and ACTION_UP. How do I avoid ACTION_UP being triggered if they have pressed down, kept their finger on the screen and moved their finger away from the button? Currently if they press down and slide their finger away from the button, it is still DOWN. Then when they release their finger from the screen, the button is still triggered...this is not the behaviour I want.
For example if you see tinder's main like/dislike buttons - once the finger is moved away from the button (if held down on the screen) the button action is cancelled (once the finger is released).
Thanks! It is a simple but specific question which I can't seem to find the answer to anywhere. It must be possible if tinder does it I guess