kyleduo/SwitchButton

How to set the text color

mengming opened this issue · 2 comments

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.
image

I want to change the text color, but it doesn't worked. How to solve this problem?
Waiting for you, thanks a lot!

I found the solution, thanks.

For the benefit of others: simply use android:textColor