O'Reilly logo

Android Programming: The Big Nerd Ranch Guide by Brian Hardy, Bill Phillips

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

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 ...

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