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

Feature Request - Bottom Navigation View to provide api to set the shifting mode #22

Closed akoufa closed 7 years ago

akoufa commented 7 years ago

The mShiftingMode field controls the shifting behaviour of the Bottom Navigation View. The Design Support Library does not provide at this time an API to set this field as the behaviour is hard coded to be enabled when the count of menu items exceeds the number 3. I understand that this is according to the material design specs. Nevertheless I think the library should not force this on the developers. I found one possible solution to this but it feels more like a hack. http://stackoverflow.com/questions/40176244/how-to-disable-bottomnavigationview-shift-mode

pranayairan commented 7 years ago

@tec27 Do you know when your changes will make it to release ?

JustinHoUMD commented 6 years ago

@tec27 Are there plans of including this change in the design support library?

andrerinaldi commented 6 years ago

It's a pity there's no kind of interest in this request. It would make the BottomNavigationView widget more useful and appetible.

MGaetan89 commented 6 years ago

Isn't it available in the 28-alpha release?

AidanLaing commented 6 years ago

You can now use app:labelVisibilityMode="[labeled, unlabeled, selected, auto]" in 28-alpha

joaoluizn commented 5 years ago

how!?!?! I'm using 28 stable and it keeps saying the same error :(