Android之EditView 阻止软键盘自动弹出

在AndroidManifest.xml里面


选择那个acitivity,把他的windowsoftinputmode设置成stateHidden和
adjustUnspecified

Java代码

<activity

android:name=".ClientSearchViewActivity"

android:label="@string/app_name"

android:screenOrientation="portrait"

android:windowSoftInputMode="adjustUnspecified|stateHidden"

android:configChanges="orientation|keyboardHidden">

</activity>