Bottombar: how can I change the default colors?

Created on 2 Jun 2016  路  5Comments  路  Source: roughike/BottomBar

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.

Most helpful comment

As ugly workaround you can override <color name="white">#3b5998</color> in your colors.xml. this will change icon and titles color (

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

javiersantos picture javiersantos  路  5Comments

avivcaspi picture avivcaspi  路  8Comments

LOG-TAG picture LOG-TAG  路  5Comments

LiuDeng picture LiuDeng  路  5Comments

rosenpin picture rosenpin  路  3Comments