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

代码设置选中 setChecked ,可以不进入CheckedChange事件吗 #40

Open
renwfy opened this issue Aug 19, 2019 · 9 comments
Open

Comments

@renwfy
Copy link

renwfy commented Aug 19, 2019

代码设置选中 setChecked ,可以不进入CheckedChange事件吗?
只有手动切换的时候,才进入CheckedChange事件

@9694101
Copy link

9694101 commented Oct 4, 2019

动画完成之后才会调用change方法

@LukeChow
Copy link

@renwfy 你可以设置取消监听啊,设置完然后重新设置监听

我试过了,会自动无限循环的打开和关闭。。。

@wangliyang206
Copy link

我也遇到这个问题了
列表中嵌套SwitchButton,然后列表在上 下滑动时,SwitchButton会自动进入点击事件。
怀疑是setChecked的问题,前面加上setOnCheckedChangeListener(null) 也是不行

@Null8889
Copy link

Null8889 commented Feb 5, 2021

+1

2 similar comments
@Fanyunf
Copy link

Fanyunf commented May 10, 2021

+1

@jume2003
Copy link

+1

@jume2003
Copy link

不可做单选

@developmans
Copy link

developmans commented Mar 16, 2022 via email

@mioyuan
Copy link

mioyuan commented Jan 15, 2024

这个问题解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants