当listView里面有其他获取焦点的控件,比如button,checkbox.
解决方法1:将checkbox
<CheckBox
android:focusable="false"
</CheckBox>
设置为false.
2.在外面的布局中设置
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:descendantFocusability="blocksDescendants"
android:orientation="vertical" >