Chapter    4

Adapters and List Controls

In Chapter 3, we introduced a range of basic User Interface controls with which you can construct Android applications. If you recall the examples on TextView, one of the types of controls we explored was the AutoCompleteTextView, which when coupled with a source of data—an adapter—was able to prompt the user with a range of predetermined values. In this chapter, we’ll explore adapters further, and the wider topic of list controls that enable construction of more elaborate and sophisticated screen designs.

Understanding Adapters

Before we get into the details of list controls of Android, we need to talk about adapters. List controls are used to display collections of data. But instead of using a single ...

Get Pro Android 5, Fifth 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.