1. android:focusable=false
2.在根節點root添加android:descendantFocusability=”blocksDescendants”
原因是在listview的touch源碼判斷如果有子控件並且子控件有獲取焦點的能力 listview就不對事件做處理。
1. android:focusable=false
2.在根節點root添加android:descendantFocusability=”blocksDescendants”
原因是在listview的touch源碼判斷如果有子控件並且子控件有獲取焦點的能力 listview就不對事件做處理。