SmartTabLayout
SmartTabLayout copied to clipboard
tab title color
i do not find a way to custom a tab title when it is selected. And i have a bug here:my indicator slide to the middle between two tab items,why?
I have the same problem.
Hi,I had found the solution. You could solve by setting app:stl_defaultTabTextColor
. For example:
app:stl_defaultTabTextColor="@color/color_tab"
make a file called color_tab
in res/color. write like this:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/text_enabled" android:state_selected="true"/>
<item android:color="@color/text_disabled" android:state_selected="false"/>
</selector>
Thanks for your help!I have used it for my project.