O'Reilly logo

Android Programming Concepts by Trish Cornez, Richard Cornez

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

7 Touch Gestures

Chapter Objectives

In this chapter you will:

  Learn to code the detection of and response to touch gestures.

  Find patterns of common touches to create touch gestures that can be interpreted by an Android device.

  Learn about MotionEvents.

  Understand the differences between touch events and motion events.

  Learn how to build applications using multitouch gestures.

  7.1 Touchscreens

As users of Android devices, we often take touch input for granted. We double tap, fling our fingers across screens, pinch images, and perform other touch gestures that were not widely available as characteristics of screen interfaces prior to January 2007. The naturalness and variety of touch-based hand gestures play an integral role ...

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