ListView的item不能点击(焦点冲突问题)

一般这种问题就是item里面有checkbox或button之类抢占焦点的控件,解决方案有2种:

第一种:就是在checkbox或button添加android:focusable="false"属性

第二种:就是在checkbox或button的父layout中添加android:descendantFocusability="blocksDescendants"

原文地址:https://www.cnblogs.com/androidxiaoyang/p/4641148.html