I am trying to style tabs in an android.support.design.widget.TabLayout I can not get the selected tab color to change, it is always set to the textColorPrimary in my app theme, but I need them to be different colors.
I have tried setting values in styles.xml that applies to TabLayout, but I read you can not change active tab text color this way, though I can change unselected tab text colors. I have also tried:
tabLayout.setTabTextColors(getResources().getColorStateList(R.color.selector));
and
tabLayout.setTabTextColors(R.color.Green, R.color.Blue);
Is it possible to override the selected tab text color?