Performing Navigation
Few apps are composed of a single screen. As apps add new features, developers create new screens to house those features. And managing how users navigate through an individual app is a difficult task. There might be many paths a user could take as they navigate deeper into your app.
The Navigation component in the Jetpack libraries helps you define screens and paths between them and then gives you the tools to perform that navigation. At its core, the library relies on a navigation graph, which defines a group of screen destinations as well as the paths between destinations. The navigation graph is contained in an XML file, and Android Studio provides a handy graphical tool for editing it.
At the end of this ...
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.