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 to change tab text color dynamically from coding end. #306

Open
Sorwar-Hosen-Mostafa opened this issue Jun 18, 2020 · 0 comments
Open

Comments

@Sorwar-Hosen-Mostafa
Copy link

Sorwar-Hosen-Mostafa commented Jun 18, 2020

I tried to set it by,
tab.setDefaultTabTextColor(R.color.primary_color);
its not working.
i have also tried adding.
tab.invalidate();
its not working either.

And last but not the least,
also how to set selector color drawables as default color dynamically..

i need to change the selected tab text color according to the tab background. unselected tab colors can be default.

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

1 participant