This is the first part of the complete mini course on navigation component. In this tutorial, you will learn how to implement navigation component in your application. Navigation component helps to create application with a single activity and many fragments. This would increase the performance of your application and enable you to create complicated applications with many fragments.
The navigation component consists of three keywords that are described as bellow:
1- Navigation Graph: is a resource file that contains all of your destinations and actions. The graph represents all of your app's navigation paths.
2- NavHost: is an empty container that displays destinations from your navigation graph. The navigation component contains a default NavHost implementation, NavHostFragment, that displays fragment destinations.
3- NavController: its an object that manages app navigation within a NavHost. This would help to replace one fragment with another fragment in the NavHost container.
🔴 Subscribe for more educational tutorials on CodeWithMazn channel!
Follow me on Instagram
/ codewithmazn