Complete the code to create a NavHostFragment in the activity layout.
val navHostFragment = supportFragmentManager.findFragmentById(R.id.[1]) as NavHostFragment
Complete the code to navigate to a nested graph destination using NavController.
navController.navigate(R.id.[1])Fix the error in the nested graph XML by completing the missing attribute.
<navigation xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/[1]" app:startDestination="homeFragment">
Fill both blanks to define a nested navigation graph with a start destination.
<navigation android:id="@+id/[1]" app:startDestination="[2]">
Fill all three blanks to correctly retrieve the NavController from a nested NavHostFragment.
val navHostFragment = supportFragmentManager.findFragmentById(R.id.[1]) as [2] val navController = navHostFragment.[3]
