O'Reilly logo

Creating Android Applications: Develop and Design by Chris Haseman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Adapters, ListViews, 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 Twitter feed. 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 need to deal with.

ListView

First, you’ll need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required