# Using Gestures

DevFeed: [Using Gestures](<https://devfeed.tech/articles/using-gestures-30574.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2014/10/using-gestures/>)

Published: 2014-10-08T07:00:00Z

Content type: tutorial

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Code](<https://devfeed.tech/topics/code.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [app](<https://devfeed.tech/tags/app.md>), [code](<https://devfeed.tech/tags/code.md>), [gestures](<https://devfeed.tech/tags/gestures.md>)

## AI overview

A tutorial on adding gesture interaction to Android apps with GestureDetector and OnGestureListener classes. It explains how gesture detectors interpret touch events and presents a sample ImageView that supports pinch-to-zoom scaling.

## Source excerpt

Modern Android apps often make use of gesture interaction to provide fluid, natural interaction with the app. There are a few ways to handle these interactions, and in this post I'm going to cover some of the basics for easily adding gesture support to your app. The code for this sample app can be found at Github. The basic building blocks of this simple gesture handling code is the GestureDetector, and the various OnGestureListeners. These classes allow you to easily detect and handle certain gestures, whithout having to worry about tracking touch events and determine the math to decide what type of gesture it is.