kyleduo / SwitchButton

A cute widget of Switch Button for you to create beautiful and friendly UI.
4.72k stars 866 forks source link

How to set the text color #90

Closed mengming closed 7 years ago

mengming commented 7 years ago

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!

mengming commented 7 years ago

I found the solution, thanks.

squeeish commented 6 years ago

For the benefit of others: simply use android:textColor