how to change the color of the text indicator of tab? i can change the icon using selector tag refered the example. but cant to the text color. how?
Danny C's answer is 100% correct.I just wanted to add something to it to make a complete answer with resource file.
The text_tab_indicator under res/color file
And this text_tab_unselected & text_tab_selected will look like this under colors/values folder
#ffffff
#95ab45
After that finally add Dannyy's answer in tab class file
final TextView tv = (TextView) tabWidget.getChildAt(i).findViewById(android.R.id.title);
tv.setTextColor(this.getResources().getColorStateList(R.color.text_tab_indicator));