将焦点从ListView行中的按钮更改为列表项目 [英] Changing focus from Button in ListView row to list item
本文介绍了将焦点从ListView行中的按钮更改为列表项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 ListView
列表项,其上有一个 Button
。您不能再选择列表项目,只能选择列表项目中的按钮
。你如何将焦点改回列表项?
android:focusable =false
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?
解决方案
For the Button
in your list row layout add the attribute:
android:focusable="false"
这篇关于将焦点从ListView行中的按钮更改为列表项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文