Skip to content

Commit

Permalink
Update BottomNavigationView's Widget.MaterialComponents style variant…
Browse files Browse the repository at this point in the history
…s to use

MaterialShapeDrawable.

PiperOrigin-RevId: 238732527
  • Loading branch information
afohrman authored and cketcham committed Mar 22, 2019
1 parent d6f7b7c commit a1f6a72
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
Use the default style to get the default bottom navigation bar with a colorSurface background and
colorPrimary for the icon and text colors. -->
<style name="Widget.MaterialComponents.BottomNavigationView" parent="Widget.Design.BottomNavigationView">
<item name="android:background">@null</item>
<item name="backgroundTint">?attr/colorSurface</item>
<item name="enforceTextAppearance">true</item>
<item name="enforceMaterialTheme">true</item>
<item name="android:background">?attr/colorSurface</item>
<item name="itemBackground">@null</item>
<item name="itemHorizontalTranslationEnabled">false</item>
<item name="itemIconTint">@color/mtrl_bottom_nav_item_tint</item>
Expand All @@ -46,9 +47,10 @@
Use the colored style to get a bottom navigation bar with a colorPrimary background and
percentages of colorOnPrimary for the icon and text colors. -->
<style name="Widget.MaterialComponents.BottomNavigationView.Colored">
<item name="android:background">@null</item>
<item name="backgroundTint">?attr/colorPrimary</item>
<item name="enforceTextAppearance">true</item>
<item name="enforceMaterialTheme">true</item>
<item name="android:background">?attr/colorPrimary</item>
<item name="itemIconTint">@color/mtrl_bottom_nav_colored_item_tint</item>
<item name="itemRippleColor">@color/mtrl_bottom_nav_colored_ripple_color</item>
<item name="itemTextAppearanceInactive">?attr/textAppearanceCaption</item>
Expand Down

0 comments on commit a1f6a72

Please sign in to comment.