Chapter 9. Adding Interactivity: Handling UI Events

In this chapter, we will explore how to wire up those super-cool UI designs that you have seen in the previous chapters, so that your UI design becomes highly functional within your Android application. With Android's convenient event listeners, you can easily add in your own custom programming logic. Using the event handling described in this chapter, you'll be able to have your UI and graphical elements actually do something productive or impressive after they are tapped on (touchscreen), navigated to (navigation keypad), or typed into (keyboard).

We'll begin with an overview of how Android listens to its touchscreen and keyboard, and how to harness the power of input devices.

An Overview of ...

Get Android Apps for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.