panpf / switch-button

SwitchButton 是 Android 上的一个开关按钮控件 【Deprecated】【Stop maintenance】
330 stars 133 forks source link

setOnClickListener is not called when widget is clicked #11

Open kenargo opened 5 years ago

kenargo commented 5 years ago

It is a common use to use OnClickListener when you need to detect if the check change is a user change or a program change (e.g., setCheck()).

SInce OnClickListener is not called this common design pattern cannot work with the control.

panpf commented 5 years ago

Sorry, I have not experienced the maintenance of this library, you can look for other alternatives, I recommend you to use this https://github.com/zcweng/SwitchButton

kenargo commented 5 years ago

Thank you.

The new SwitchButton has the same fault. The setOnCheckedChangeListener is never called; only setOnCheckedChangeListener works.

From: Flyge [mailto:notifications@github.com] Sent: Thursday, January 24, 2019 7:36 PM To: panpf/switch-button switch-button@noreply.github.com Cc: Kenneth A. Argo kenargo@kenargo.com; Author author@noreply.github.com Subject: Re: [panpf/switch-button] setOnClickListener is not called when widget is clicked (#11)

Sorry, I have not experienced the maintenance of this library, you can look for other alternatives, I recommend you to use this https://github.com/zcweng/SwitchButton

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/panpf/switch-button/issues/11#issuecomment-457444337 , or mute the thread https://github.com/notifications/unsubscribe-auth/AM7-OIgSJF1FjR-kMWrW7pp97GbyrY_rks5vGnuzgaJpZM4aSCx3 . https://github.com/notifications/beacon/AM7-OI841mvRSJ1Dsf4kkaPL1398JVblks5vGnuzgaJpZM4aSCx3.gif