O'Reilly logo

Pro Android 3 by Sayed Y. Hashimi, Dave MacLean, Satya Komatineni

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

Chapter 25. Touch Screens

Many Android devices incorporate touch screens. When a device does not have a physical keyboard, much of the user input must come through the touch screen. Therefore your applications will often need to be able to deal with touch input from the user. You've most likely already seen the virtual keyboard that displays on the screen when text input is required from the user. We used touch with mapping applications in Chapter 17 to pan the maps sideways. The implementations of the touch screen interface have been hidden from you so far, but now we'll show you how to take advantage of the touch screen.

This chapter is made up of four major parts. The first section will deal with MotionEvent objects, which is how Android tells ...

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