I am working on the project NavigationAdvancedSample of the architecture-components-samples repository. This project shows a workaround to support multiple back stacks for each tab of a BottomNavigationView.
In this configuration, you define a navigation graph for each of your tabs and let the class extension NavigationExtensions handle the different back stacks for you. Everything works fine, but I can't find a way to select the starting tab of the BottomNavigationView
. I have tried to tweak the NavigationExtensions
but without success.
By default, the selected tab on the application startup is the first of the bottom navigation view. How can I change this behavior in order to show the second or third tab for example?