SmartTabLayout icon indicating copy to clipboard operation
SmartTabLayout copied to clipboard

tab title color

Open conanlee88 opened this issue 7 years ago • 3 comments

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?

conanlee88 avatar Aug 25 '17 02:08 conanlee88

I have the same problem.

chuckiefan avatar Aug 26 '17 17:08 chuckiefan

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>

chuckiefan avatar Aug 26 '17 17:08 chuckiefan

Thanks for your help!I have used it for my project.

HumphreySs avatar Mar 21 '19 11:03 HumphreySs