glomadrian / material-animated-switch

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

If first state is false, How can I make off state in start? #21

Open sdsd4564 opened 7 years ago

sdsd4564 commented 7 years ago

reason why I give up this lib... i tried this code in onCreate

if (isLastChecked) { notiSwitch.toggle(); // because default state is true this btn }

and... dead. valueAnimator null object. how to solve this problem?

liangbaochang commented 6 years ago

I had the same problem.View source code.but,I still haven't found a solution.