iielse / switchbutton

iOS风格SwitchButton。 只涉及到一个类文件,异常容易集成进入你的项目。支持开关的"延时和回滚"操作。only one class file, very easy to integrate into your program. support the delay operation and rolling back action of the switch
677 stars 192 forks source link

关于回滚和拖拽 #13

Closed lizhenqiang closed 4 years ago

lizhenqiang commented 6 years ago

并没有拖拽和回滚效果,是我哪里设置的不对么

iielse commented 4 years ago

试一试 setOnStateChangedListener. 按钮表现进入等待状态,然后根据业务结果调用 toggleSwitch