ListView的item中有button和checkbox,listview的点击事件无效,解决办法:
在item布局文件中的根控件中添加属性设置:
android:descendantFocusability="blocksDescendants"
如果只能点击checkbox,而无法触发item的点击事件,那么可以禁掉checkbox的焦点获取,不让它可以点击就可以了
checkbox里面加
android:focusable="false"
android:clickable="false"