Returned value obtained by event. getaction:
// Touch the screen time
CaseMotionevent. action_down: // = 0
Break;
// Touch and move the moment
CaseMotionevent. action_move: // = 2
Break;
// Terminate the touch time
CaseMotionevent. action_up: // = 1
Break;
// A bit similarAction_upBut will not process the event, such:
For example, if you try your best to touch the screen, the system will not be able to respond to your touch event under certain conditions (which may be due to a large amount of background resource consumption, he just said forget it. I can't take it anymore when I touch the event. I will give you an action_cancel to tell you that I'm not playing.
Action_cancel is generally dragged in listview or scrollview without triggering the press event. |
This event is triggered when your finger (or other) moves the screen, for example, this event is triggered when you drag a listview or a scrollview on the screen with your finger instead of pressing the button above.
CaseMotionevent. action_cancel: // = 3
Break;