For the More Curious: Navigation Architecture Component Library

As you have seen, there are several ways of navigating users through your app. You can have multiple activities, one for each screen, and start them as the user interacts with your UI. You can also go with a single activity that hosts several fragments that make up your UI instead.

In an effort to simplify app navigation, the Android team introduced the Navigation architecture component library as part of Jetpack. This library simplifies the implementation of your navigation by providing a GUI-based editor where you can configure your navigation flow (Figure 12.4).

Figure 12.4  Navigation editor

The Navigation library is opinionated about how you should ...

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

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