Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i set the background color of selected tab? #132

Open
rkkalkii opened this issue Aug 2, 2018 · 3 comments
Open

how can i set the background color of selected tab? #132

rkkalkii opened this issue Aug 2, 2018 · 3 comments

Comments

@rkkalkii
Copy link

rkkalkii commented Aug 2, 2018

No description provided.

@haroon47
Copy link

I also want to know

@BhoomiKhan
Copy link

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
Copy link

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()
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants