Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kwmt/e9307d8e0f37418d0a60b28269e307f2 to your computer and use it in GitHub Desktop.
Save kwmt/e9307d8e0f37418d0a60b28269e307f2 to your computer and use it in GitHub Desktop.
How to remove the back button of Toolbar with Navigation Architecture Component
val appBarConfiguration = AppBarConfiguration(setOf(R.id.titleScreen, R.id.aboutScreen))
setupActionBarWithNavController(navController, appBarConfiguration)
@rohitjakhar
Copy link

Not works

@kwmt
Copy link
Author

kwmt commented Apr 5, 2021

@rohitjakhar
In my project, it works.

The stackoverflow may be useful to you.
https://stackoverflow.com/a/57169105/2520998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment