8 Displaying Lists with RecyclerView

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, as shown in Figure 8.1.

Figure 8.1  A list of crimes

Screenshot shows CriminalIntent in Android phone. The screen shows the list of Custom items in CriminalIntent app.

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

Figure 8.2  CriminalIntent with a list of crimes

Figure shows CriminalIntent with a list of crimes.

Get Android Programming: The Big Nerd Ranch Guide, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.