Introduction
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
onTouchEvent | A listener that can be found in surfaces(e.g. SurfaceView). Does not need to be set like other listeners(e,g. onTouchListener) |
onLongTouch | Similar to onTouch, but listens for long presses in buttons, surfaces and more.|
Found a mistake? Have a question or improvement idea?
Let me know.
Handling touch and motion events:
*
Handling touch and motion events