当expandlistview的getGroupView或者getChildView中包含checkbox时,前者点击不可用

来源:互联网 发布:feynman 知乎 编辑:程序博客网 时间:2024/05/21 11:01

当expandlistview的getGroupView或者getChildView中包含checkbox时,前者点击不可用。

解决办法 在etGroupView或者getChildView的checkbox中添加

android:clickable="true"android:focusable="false"android:focusableInTouchMode="false"

问题就解决了。

5 0