<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:descendantFocusability="blocksDescendants"
android:focusableInTouchMode="true"
>
在ListView 的Item的布局的最外层,设置
android:focusableInTouchMode="true"
的时候,ListView的OnItemClick事件就不会触发, 去掉这条属性就可以触发条目点击事件,