Closed risekid closed 9 years ago
HI, @risekid
You can use the ColorStateList. https://github.com/ogaclejapan/SmartTabLayout/blob/master/demo/src/main/res/color/custom_tab.xml
Solved?
@ogaclejapan yeah, I know, and it works, thx. But I just wonder why there is just a defaultTabTextColor in attributes.
@risekid Thank you for your advice.
TabLayout of design support library are also divided into two attributes.
<attr name="tabTextColor" format="color"/>
<attr name="tabSelectedTextColor" format="color"/>
Hmm,, I think as good, even ColorStateList,
but, wonder if easy to use better everyone tabTextColor
and tabSelectedTextColor
...? :o
<attr name="stl_defaultTabTextColor" format="color|reference"/>
I'll consider it. Thanks!
hi, this is a great lib, but I found there is no seleted title color in attributes?