在其父控件下,添加如下的属性:
android:focusable="true"
android:focusableInTouchMode="true"
设置控件焦点属性
本文介绍如何通过设置Android中父控件的两个属性来实现焦点功能:android:focusable=true 和 android:focusableInTouchMode=true。这对于开发具备触摸交互功能的应用尤为重要。
在其父控件下,添加如下的属性:
android:focusable="true"
android:focusableInTouchMode="true"

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