Chapter 4. Presenting App Data

In this chapter, we will cover the following recipes:

  • Implementing a ListView
  • Using a SimpleAdapter
  • Using custom ListView items
  • Using a BaseAdapter with arbitrary data
  • Using a CursorAdapter
  • Optimizing the ListView
  • Enabling fast scrolling
  • Using section indexes
  • Integrating app searchability

Introduction

Data is the most important feature of many apps, and the best way to use this data is often to present it first. Data comes in many shapes and forms, but in order to be managed or manipulated, it has to be presented.

Data can be in the form of images, text, or other forms, but often the most common way of presenting data is in a list. Lists provide a structured way in which data can be quickly viewed and compared.

There are many ways to present data in the form of a list. It can simply be presented as text blocks one below the other; however, this is often difficult to read. If each chunk of data is carefully arranged and presented, the data becomes more useful. Not only how the data is arranged but also how the data is rendered aids viewing.

Humans can easily pick out patterns and identify specific items if the data is arranged in a form that is both neat and clean. By spacing and ordering items, data becomes easier to consume.

Another important aspect of data presentation is the ability to quickly locate or navigate to a specific piece of data. This involves scrolling, but can be further enhanced by searching or the ability to jump to a specific section in the larger data.

Data is important and, when arranged with navigational support, it becomes useful and useful data is information.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.166.7