在Manifest.xml中的相应的activity模块中添加 android:windowSoftInputMode="stateUnspecified|adjustPan" 转载于:https://www.cnblogs.com/earl-yongchang/p/4929452.html