android EditText 不自动弹出键盘的方法


在 AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为 adjustUnspecified|stateHidden



<activity
    android:name=".Main"
    android:label="@string/str_lable_device_loc"
    android:windowSoftInputMode="adjustUnspecified|stateHidden"
    android:screenOrientation="portrait">
    <intent-filter>
        <action android:name="..." />
        <category android:name="android.intent.category.DEFAULT" />
    intent-filter>
activity>

你可能感兴趣的:(Android(原创))