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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章