在 Manifest.xml 中设定activity的属性 android:windowSoftInputMode="stateHidden|stateUnchanged" 更多好内容戳下面: https://blog.csdn.net/wuqingsen1