Search code examples
androidbottomnavigationviewmaterial3

How to change active color of BottomNavigationView in material3


enter image description here

How to change active color of BottomNavigationView

remove or change color for active item in BottomNavigationView


Solution

  • You can create a style, like this:

    <style name="Custom.Indicator" parent="Widget.Material3.BottomNavigationView.ActiveIndicator">
        <item name="android:color">#FF00FF</item>
    </style>
    

    And then set it on you BottomNavigation, like this:

    <com.google.android.material.bottomnavigation.BottomNavigationView
        app:itemActiveIndicatorStyle="@style/Custom.Indicator"