在使用过程中,需要做以下两部:
1、在根视图中添加:
android:focusable="true" android:focusableInTouchMode="true"
2、在AndroidManifest.xml配置文件中个,activity的声明取消:
android:windowSoftInputMode="adjustPan|stateHidden"
在使用过程中,需要做以下两部:
1、在根视图中添加:
android:focusable="true" android:focusableInTouchMode="true"
2、在AndroidManifest.xml配置文件中个,activity的声明取消:
android:windowSoftInputMode="adjustPan|stateHidden"
转载于:https://my.oschina.net/reborn87/blog/676613