Chapter 5. Adapters, List Views, and Lists

Lists, in Android, are one of the most often-used tools to show data to users. From the entry menu of a game to a dynamic list of Facebook statuses or Twitter messages, lists are everywhere. Android’s system for dealing with them, while complicated at first, becomes much easier once you begin using it. In this chapter, I’ll run the gamut from simple, static main-menu lists to the dynamic, remote-data-backed custom list elements of a Reddit feed (the social news and entertainment website). Along the way, I’ll expose you to the inner workings of one of Android’s most often-used and complex UI views.

Two Pieces to Each List

To display lists of ordered data with Android, there are two major components you’ll ...

Get Beginning Android Programming: Develop and Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.