来源:http://blog.csdn.net/gyflyx/article/details/6567701
关键点:
1.ListView每一项的布局中,顶级布局需要声明Android:descendantFocusability= "blocksDescendants"
2.被ListView包含的Button需要声明属性android:focusable = "false"
本文介绍了解决ListView中子项如Button等控件焦点冲突的方法。通过设置顶级布局的descendantFocusability属性为'blocksDescendants'及Button的focusable属性为'false',可以有效避免焦点冲突问题。
开发板推荐:天空星STM32F407VET6开发板
超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印
来源:http://blog.csdn.net/gyflyx/article/details/6567701
关键点:
1.ListView每一项的布局中,顶级布局需要声明Android:descendantFocusability= "blocksDescendants"
2.被ListView包含的Button需要声明属性android:focusable = "false"
开发板推荐:天空星STM32F407VET6开发板
超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

被折叠的 条评论
为什么被折叠?