material-components / material-components-android

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

[BottomNavigationView] support shapeAppearance attribute #1254

Open j-ns opened 4 years ago

j-ns commented 4 years ago

Since BottomNavigationViewuses MaterialShapeDrawableinternally as background, it would be nice if we could set its ShapeAppearanceModelin xml or via setter. While it is possible to get the background as MaterialShapeDrawable and apply the ShapeAppearanceModel, it would be more convenient via xml attribute or setter.

gabrielemariotti commented 4 years ago

I don't know if it is compliant with the material design guideline. If yes I can push a PR.