ogaclejapan / SmartTabLayout

A custom ViewPager title strip which gives continuous feedback to the user when scrolling
Apache License 2.0
7.09k stars 1.34k forks source link

How to change tab text color dynamically from coding end. #306

Open Sorwar-Hosen-Mostafa opened 4 years ago

Sorwar-Hosen-Mostafa commented 4 years ago

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.