Chapter    7

Building Layouts with Lists and Adapters

The previous two chapters focused on widgets that convey single pieces of information or provide basic interaction, and different ways to implement the layout of those widgets in your activities. In this chapter, I cover some of the more advanced data-driven UI elements. With these UI elements, not only do definitions in your layout XML files govern the content and even the size and shape of the interface, but the interface adapts and changes based on the data populating it.

A very common design goal for application developers is to want to present users with a constrained list of choices from which they can choose. Think of applications like music players, or phone dialers working from a ...

Get Beginning Android, 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.