How can I set a default background color for the bottom bar? By default is set to R.attr.colorPrimary, is there any way to set another color?
And also, the icons and text are always white. How could I change this default color?
I was reading the guidelines and the color of the icons and text don't have to be white, they have to use the app's primary color.
Color: Tint the active icon with the app鈥檚 primary color. Use black or white if the bottom navigation bar is already colored.
Also I wonder if it is possible to do this ?
Hi, I couldn't manage to do it, also. My theme is light, my icons are black and my bottom bar's icons turn white so they become unseen. I want my original icon colors which is black.
I have the same problem. I only have 3 tabs. My theme is same as in the sample. and I tried to use mapColorForTab to change color of tabs but my bottom bar always has a white color. My settings are same as shown in the sample code but the colors won't change :(. This problem happenes if there are less than 4 tabs. I tested this on the sample code. If the number of tabs is reduced to 3 then colors down work.
As ugly workaround you can override <color name="white">#3b5998</color> in your colors.xml. this will change icon and titles color (
You can just set the backgroudn color by android:background XML attribute in the newest version.
Most helpful comment
As ugly workaround you can override
<color name="white">#3b5998</color>in yourcolors.xml. this will change icon and titles color (