Using NavArgs we will receive the data from list to details fragment.ġ.Clicking on item in list opens another fragment with details of that items.Our MainActivity shows default destination fragment with list.NavController, a controller which is set in NavHost itself to handle all fragment transactions when we navigate to destinations. NavHost, this contains a default NavHostFragment which we will hookup with our activity to display fragments properly.ģ. Navigation graph, will shows all destinations and how they are connected by actions in our app of xml resource type.Ģ.