SmartTabLayout
SmartTabLayout copied to clipboard
selected tab text color
Hi,
I want to set color of selected tab text color I have already set the stl_defaultTabTextColor
any ideas?
it's easy, app:stl_defaultTabTextColor="@color/selector_color"
<item android:state_selected="true" android:color="@color/index"/>
<item android:color="@color/grey_color"/>
how to do it from programming?
app:stl_defaultTabTextColor="@drawable/smarttablayout_selector_a"
in drawable folder :
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_selected="true" android:color="@color/textcolor_red"/> <item android:color="@color/gray"/> </selector>