Chapter 3

Displaying Lists of Items and Images

One of the common tasks you need to perform in Android application development is displaying long lists of items or images. For example, you might have a list of names and images that you want to display in your activity so that when the user selects a name, you can do some further processing, such as using another activity to display details about the selected name. In Android, you have a number of ways to do that. This chapter covers how to use the following views:

  • ListView
  • Spinner
  • GridView
  • Gallery
  • ImageSwitcher

Get Android Application Development Cookbook: 93 Recipes for Building Winning Apps 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.