AndroidManifest.xml中,在EditText所在的Activity中,加上下列代码: android:windowSoftInputMode="adjustUnspecified|stateHidden"