在使用过程中,需要做以下两部:
1、在根视图中添加:
android:focusable="true" android:focusableInTouchMode="true"
2、在AndroidManifest.xml配置文件中个,activity的声明取消:
android:windowSoftInputMode="adjustPan|stateHidden"
本文指导您如何在Android应用中调整布局的焦点属性,包括添加焦点可激活性及修改窗口软输入模式,以优化用户体验。
在使用过程中,需要做以下两部:
1、在根视图中添加:
android:focusable="true" android:focusableInTouchMode="true"
2、在AndroidManifest.xml配置文件中个,activity的声明取消:
android:windowSoftInputMode="adjustPan|stateHidden"
转载于:https://my.oschina.net/reborn87/blog/676613
1547
1万+

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