9Displaying Lists with ListFragment

CriminalIntent’s model layer currently consists of a single instance of Crime. In this chapter, you will update CriminalIntent to work with a list of crimes. The list will display each Crime’s title and date and whether the case has been solved.

Figure 9.1  A list of crimes

A list of crimes

Figure 9.2 shows the overall plan for CriminalIntent in this chapter.

Figure 9.2  CriminalIntent with a list of crimes

CriminalIntent with a list of crimes

In the model layer, you have a new object, CrimeLab, that will be a centralized data stash that stores Crime objects.

Displaying ...

Get Android Programming: The Big Nerd Ranch Guide 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.