O'Reilly logo

Pro Android 4 by Satya Komatineni, Dave MacLean

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Gestures

Gestures are a special type of a touch screen event. The term gesture is used for a variety of things in Android, from a simple touch sequence like a fling or a pinch to the formal Gesture class that we’re going to talk about later in this section. Flings, pinches, long presses, and scrolls have expected behaviors with expected triggers. That is, it is pretty clear to most people that a fling is a gesture where a finger touches the screen, drags somewhat quickly off in a single direction, and then lifts up. For example, when someone use a fling in the Gallery application (the one that shows images in a left-to-right chain), the images will move sideways to show new images to the user.

The first gesture we want to cover is the pinch. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required