kyleduo / SwitchButton

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

Is there a way to automatically set button to true? without listener? #108

Closed Melinag1992 closed 6 years ago

Melinag1992 commented 6 years ago

I need to set the button automatically to "online" or true , if conditions are met -> without touch/dragging/clicking. is this possible?

kyleduo commented 6 years ago

You can change the checked state by invoke a serial methods, which can be found in README. Maybe you want this, setCheckedImmediatelyNoEvent(boolean).