Android Handling touch and motion events

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!


A summary of some of the basic touch/motion-handling systems in the Android API.


onTouchListenerHandles single touches for buttons, surfaces and more
onTouchEventA listener that can be found in surfaces(e.g. SurfaceView). Does not need to be set like other listeners(e,g. onTouchListener)
onLongTouchSimilar to onTouch, but listens for long presses in buttons, surfaces and more.

Got any Android Question?