13 Fragment Navigation
In this chapter, you will get the list and the detail parts of CriminalIntent working together. Using the Navigation Jetpack library, you will define the screens your users will be able to see and how your users can move between them.
When a user presses an item in the list of crimes, the Navigation library will swap out CrimeListFragment with a new instance of CrimeDetailFragment displaying the details for the crime that was pressed (Figure 13.1).
Figure 13.1 Swapping CrimeListFragment
for CrimeDetailFragment
To get this working, you will learn how to implement navigation using the Jetpack Navigation ...
Get Android Programming: The Big Nerd Ranch Guide, 5th Edition 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.