1

I can change the active color with this code:

bottomBar.setActiveTabColor

But I don't know how to change the inactive color. I'm searching a lot but I can't find a way to do it.

476rick
  • 2,764
  • 4
  • 29
  • 49

3 Answers3

0

If bottomBar is a view then it should backgroundcolor attribute android:background="@color/white" Details

How to change background color in android app

Community
  • 1
  • 1
Ashish Rawat
  • 5,541
  • 1
  • 20
  • 17
0

If you are using the BottomBar library then there is a method:

public void setInActiveTabColor(@ColorInt int color)

R. Zagórski
  • 20,020
  • 5
  • 65
  • 90
0

When you are using Roughike's bottombar, you can set the backgroundcolor of a specific tab by using the following line:

bottomBar.getTabAtPosition(0).setBackgroundColor(backgroundColorInt);

When you use this line multiple times for each tab, you can change the backgroundcolor of the whole tab.

476rick
  • 2,764
  • 4
  • 29
  • 49