The Wayback Machine - https://web.archive.org/web/20201027061859/https://github.com/kyleduo/SwitchButton/issues/103
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有方法判断按钮是用户点击发生改变还是用代码设置发生变化的,我的compoundButton.isPressed()一直为false #103

Open
woshiqinwei opened this issue Nov 24, 2017 · 4 comments

Comments

@woshiqinwei
Copy link

@woshiqinwei woshiqinwei commented Nov 24, 2017

No description provided.

@kyleduo
Copy link
Owner

@kyleduo kyleduo commented Nov 24, 2017

你想实现什么效果?

@woshiqinwei
Copy link
Author

@woshiqinwei woshiqinwei commented Nov 27, 2017

如果是点击就触发状态改变的逻辑,如果是代码控制开关的话 就不触发改变的逻辑

@kyleduo
Copy link
Owner

@kyleduo kyleduo commented Nov 27, 2017

setCheckedNoEvent方法可以不触发事件。

@HalyangDream
Copy link

@HalyangDream HalyangDream commented Apr 24, 2020

setCheckedNoEvent方法可以不触发事件。

想知道在回掉onCheckedChanged 如何判断是否是手指进行的按压操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.