Navigation Controller allows easy navigation between fragments using a navigation graph. The graph defines destinations and actions that link them. A NavHostFragment displays destinations and handles navigation. Navigation actions can pass arguments between destinations using SafeArgs. Implicit deep links can launch destinations from web URLs defined in the graph. NavigationUI connects Material Design components like bottom navigation to the graph.
4. The Navigation Problem
• Android Framework never had a concise and
real solution to manage a common problem
like Navigation
• Navigation is “hard” and there are a lot things
that you have to solve by your own
• A lot of boilerplate code
= A LOT of bugs and crash
19. The role of the Activity
An entry-point to your app
The activity manages any global navigation
(BottomNavigation, NavigationDrawer, etc), but
delegates to a NavHost for content
20. The role of the Activity
The activity manages any global navigation
(BottomNavigation, NavigationDrawer, etc), but
delegates to a NavHost for content
21. The role of the Activity
The activity manages any global navigation
(BottomNavigation, NavigationDrawer, etc), but
delegates to a NavHost for content