You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
how can i set the background color of selected tab? #132
Finally i found a way to change the background color of the selected tab by using static method of class Color.
Color.parseColor("#dd2a2a")
Example
models.add(
new NavigationTabBar.Model.Builder(
getResources().getDrawable(R.drawable.tab2_categories),
Color.parseColor("#dd2a2a")
).title("CATEGORIES")
.build()
);
Activity
haroon47 commentedon Oct 23, 2019
I also want to know
BhoomiKhan commentedon Nov 2, 2019
i am stuck on this point, i want to change the active background color of the tab but not finding a way to do. Anyone can tell me the solution?
BhoomiKhan commentedon Nov 2, 2019
Finally i found a way to change the background color of the selected tab by using static method of class Color.
Color.parseColor("#dd2a2a")
Example
models.add(
new NavigationTabBar.Model.Builder(
getResources().getDrawable(R.drawable.tab2_categories),
Color.parseColor("#dd2a2a")
).title("CATEGORIES")
.build()
);