在AndroidManifest.xml中找到你得Activity ,为它添加属性:
android:windowSoftInputMode="stateAlwaysHidden"
------------------------
android:windowSoftInputMode="adjustPan"