switch-button icon indicating copy to clipboard operation
switch-button copied to clipboard

setOnClickListener is not called when widget is clicked

Open kenargo opened this issue 5 years ago • 2 comments

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.

kenargo avatar Jan 25 '19 01:01 kenargo

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

panpf avatar Jan 25 '19 03:01 panpf

Thank you.

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

From: Flyge [mailto:[email protected]] Sent: Thursday, January 24, 2019 7:36 PM To: panpf/switch-button [email protected] Cc: Kenneth A. Argo [email protected]; Author [email protected] 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

kenargo avatar Jan 25 '19 05:01 kenargo