Chapter     9

Adding Interactivity: Handling UI Events

In this chapter, we will explore how to wire 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. You worked briefly with event handling in the last section on Dialogs in Chapter Seven, so we’ll give you the foundation in this chapter to be able to handle all types of events within the Android OS.

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), ...

Get Android Apps for Absolute Beginners, Second Edition 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.