Skip to content

Most visited

Recently visited


Using Touch Gestures

Dependencies and prerequisites

  • Android 1.6 (API Level 4) or higher

You should also read

Try it out

Download the sample

This class describes how to write apps that allow users to interact with an app via touch gestures. Android provides a variety of APIs to help you create and detect gestures.

Although your app should not depend on touch gestures for basic behaviors (since the gestures may not be available to all users in all contexts), adding touch-based interaction to your app can greatly increase its usefulness and appeal.

To provide users with a consistent, intuitive experience, your app should follow the accepted Android conventions for touch gestures. The Gestures design guide shows you how to use common gestures in Android apps. Also see the Design Guide for Touch Feedback.


Detecting Common Gestures
Learn how to detect basic touch gestures such as scrolling, flinging, and double-tapping, using GestureDetector.
Tracking Movement
Learn how to track movement.
Animating a Scroll Gesture
Learn how to use scrollers (Scroller or OverScroller) to produce a scrolling animation in response to a touch event.
Handling Multi-Touch Gestures
Learn how to detect multi-pointer (finger) gestures.
Dragging and Scaling
Learn how to implement touch-based dragging and scaling.
Managing Touch Events in a ViewGroup
Learn how to manage touch events in a ViewGroup to ensure that touch events are correctly dispatched to their target views.
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)