Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created April 26, 2022 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/71ffa080e28ef91096d1ff5d116ea47b to your computer and use it in GitHub Desktop.
Save skydoves/71ffa080e28ef91096d1ff5d116ea47b to your computer and use it in GitHub Desktop.
setup_nav_drawer_example
val navHostFragment = supportFragmentManager.findFragmentById(R.id.nav_host_fragment) as NavHostFragment
val navController = navHostFragment.navController
navView.setupWithNavController(navController)
appBarConfiguration = AppBarConfiguration(navController.graph, drawerLayout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment