How to set the text color
mengming opened this issue · 2 comments
mengming commented
I use the button in this way.
<com.kyleduo.switchbutton.SwitchButton android:layout_width="wrap_content" android:layout_height="wrap_content" app:kswTextOn="south" app:kswTextOff="north" app:kswThumbMargin="3dp" app:kswThumbColor="#ffffff" app:kswBackColor="#29b4dc" app:kswTintColor="#ffffff"/>
Then this is the effect.
I want to change the text color, but it doesn't worked. How to solve this problem?
Waiting for you, thanks a lot!
mengming commented
I found the solution, thanks.
squeeish commented
For the benefit of others: simply use android:textColor