Handling touch and motion events
suggest changeIntroduction
A summary of some of the basic touch/motion-handling systems in the Android API.
Parameters
| Listener | Details |
|---|---|
OnTouchListener |
Handles single touches for buttons, surfaces, and more. Set it with setOnTouchListener. |
onTouchEvent |
A method you override on a view such as SurfaceView. It is not a listener you register. |
OnLongClickListener |
Listens for long presses. There is no onLongTouch method. |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents