Skip to content

Instantly share code, notes, and snippets.

@wajahatkarim3
Created January 12, 2020 21:35
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 wajahatkarim3/aa39f1ac8a41d1b7840ec096ffe063f7 to your computer and use it in GitHub Desktop.
Save wajahatkarim3/aa39f1ac8a41d1b7840ec096ffe063f7 to your computer and use it in GitHub Desktop.
fun setupViews()
{
// Finding the Navigation Controller
var navController = findNavController(R.id.fragNavHost)
// Setting Navigation Controller with the BottomNavigationView
bottomNavView.setupWithNavController(navController)
// Setting Up ActionBar with Navigation Controller
setupActionBarWithNavController(navController)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment