material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[NavigationRail] Vertical scrolling support for the Rail

Open SupasinTatiyanupanwong opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe.

Our Android app is targeting small tablets and/or embedded Android devices for UAV remote control. We are make use of the Rail as the primary navigation method for the Settings screen due to the screen size contraint.

Right now, we are almost at the limit of the vertical height and the Rail does not support for vertical scrolling. This issue also exist in the Google Photos app when opening on 7-8 inch tablets on landscape orientation.

Describe the solution you'd like

It would be nice if the Rail does support for vertical scrolling thru some kind of flags or by default as if we have more menu items we can displayed vertically.

Describe alternatives you've considered

Swtiching to TabLayout instead is not a good idea based on our UX experiment as it also reduce the screen real estate for the content, so we have switched back to the Rail.

** Additional context **

Googling for the solution to this problem also resulting in similar thing on SO: https://stackoverflow.com/questions/61874835/scrollable-navigation-rail-in-flutter

SupasinTatiyanupanwong avatar Nov 24 '21 10:11 SupasinTatiyanupanwong

@drchen is there any update or future plan on this? As a substitute for DrawerLayout with NavigationView such behavior/feature should be available out of the box without us needing to explicitly handle it since this is such a common use case/scenario.

ArcherEmiya05 avatar Jun 05 '24 17:06 ArcherEmiya05

Hi @ArcherEmiya05 this is currently on the roadmap

imhappi avatar Jun 25 '24 20:06 imhappi

Hi @ArcherEmiya05 this is currently on the roadmap

May I ask if this is expected to be included in 1.13.x?

ArcherEmiya05 avatar Sep 30 '24 13:09 ArcherEmiya05

Hi @ArcherEmiya05 this was submitted in https://github.com/material-components/material-components-android/commit/cc09ce8d556a3a5d4db056bb19317fc8afe36007 and will be included in our next alpha release

imhappi avatar Sep 30 '24 17:09 imhappi