The primary swatch of my app is Green, but the Material 3 Bottom Navigation bar has the active indicator of color light purple. I want to change it to light green. Can someone tell which property in XML should be changed? enter image description here
Asked
Active
Viewed 2,018 times
0
-
2Does this answer your question? [how to change the color of active indicator bottombavigationview material You? material3](https://stackoverflow.com/questions/70397792/how-to-change-the-color-of-active-indicator-bottombavigationview-material-you-m) – DrHowdyDoo Feb 12 '22 at 05:03
2 Answers
3
the property that works for me to change the color of the indicator is the following.
<item name="colorSecondaryContainer">@color/your_color</item>
This you have to add in the style of your application as seen below.
I hope it helps.

Armando Santos
- 31
- 2
0
Add new style on themes:
<style name="BottomNavigationView">
<item name="colorSecondaryContainer">@color/white</item>
</style>
Add theme information on BottomNavigationView
android:theme="@style/BottomNavigationView"

Gustavo da Hora
- 41
- 5