问题
I have a ListView
with list items that have a Button
on them. You can no longer select the list item, only the Button
on the list item. How do you change the focus back to the list item?
回答1:
For the Button
in your list row layout add the attribute:
android:focusable="false"
来源:https://stackoverflow.com/questions/9572990/changing-focus-from-button-in-listview-row-to-list-item