今天在開發中又遇到ListView中有類似Button的控件,致使ListView無法獲取焦點的問題,做一下筆記。 解決辦法如下在XMl文件Button節點下添加
android:focusable="false"
問題可以解決