Handling touch and motion events

suggest change

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. 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents