material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.37k stars 3.07k forks source link

Navigation Rail like a NavigationView with Jetpack Navigation #4188

Closed ArcherEmiya05 closed 5 months ago

ArcherEmiya05 commented 5 months ago

Is your feature request related to a problem? Please describe. Is there any plan to support Navigation Rail with behavior like NavigationView with setupWithNavController? As of now it seems that handling states and backstack needs to be manual.

Describe the solution you'd like N/A

Describe alternatives you've considered N/A

Additional context N/A

dsn5ft commented 5 months ago

@ianhanniballake do you have any thoughts here on what is currently supported and what might be planned for Navigation Rail + Jetpack Navigation?

ianhanniballake commented 5 months ago

As per the Navigation 2.4.0 release notes back in January 2022:

NavigationUI methods that took a BottomNavigationView have been updated to instead take its superclass introduced in Material 1.4.0, NavigationBarView. This allows these methods to be used with the NavigationRailView.

dsn5ft commented 5 months ago

Thanks Ian!