开发经常用到,在此记录一下:
给父布局设置获取焦点属性
android:focusable="true"
android:focusableInTouchMode="true"
本文介绍了一种在开发中常用的技术,即如何为父布局设置焦点属性,通过使用android:focusable=true和android:focusableInTouchMode=true两个属性,可以有效控制布局在触摸模式下的焦点行为。
开发经常用到,在此记录一下:
给父布局设置获取焦点属性
android:focusable="true"
android:focusableInTouchMode="true"

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