How to hide navigation toolbar in firefox
By : user2601549
Date : March 29 2020, 07:55 AM
|
Android Jetpack Navigation How to handle the Toolbar and BottomNavBar content
By : shalini
Date : March 29 2020, 07:55 AM
Hope that helps The toolbar title is set based on 'label' value inside navigation graph, if you want to do something different with toolbar or BottomAppBar you can add addOnNavigatedListener inside your activity, and based on current destination do something. code :
findNavController(nav_host_fragment).addOnNavigatedListener { controller,
destination ->
when(destination.id) {
R.id.destination1 -> {
//Do something with your toolbar or BottomAppBar
}
R.id.destination2 -> {
//Do something with your toolbar or BottomAppBar
}
}
}
|
Unable to hide the navigation toolbar
By : user1798774
Date : March 29 2020, 07:55 AM
|
Achieving proper scrolling with RecyclerView, android jetpack navigation and a collapsing Toolbar
By : user2534293
Date : March 29 2020, 07:55 AM
|
How can I use a toolbar in a fragment but not in activity using Jetpack's Navigation
By : Ali Abdul Jabbar
Date : December 22 2020, 07:01 AM
|