在android权限文件中,申明: android:windowSoftInputMode="stateAlwaysHidden" 一句话就解决了,没必要那么费事。 注意不要用stateHidden,这样会不会起作用。