glomadrian / material-animated-switch

A material Switch with icon animations and color transitions
1.18k stars 158 forks source link

setChecked() #17

Closed ghost closed 4 years ago

macdonaldj commented 8 years ago

is there a way to set it checked by default? can't toggle in adapter in bindview. causes null pointer on animator

macdonaldj commented 8 years ago

answered from another issue:

togglebtn.post(new Runnable() { @Override public void run() { togglebtn.toggle(); } });

liangbaochang commented 6 years ago

Thank you!