在有EditText的界面 默認情況下不獲取焦點(不彈出輸入框)!
找網上找了一些解決方法像下面這些,都不能實現。


最后的解決方法是:
在AndroidMainfest.xml中選擇哪個activity,設置windowSoftInputMode屬性為adjustUnspecified|stateHidden.
~~~
<span style="font-size:18px;"><activity
android:name=".work.askforleave.AskForLeaveActivity"
android:screenOrientation="portrait"
android:theme="@style/horizontal_slide"
android:windowSoftInputMode="adjustUnspecified|stateHidden" /></span>
~~~
- 前言
- 面試中關于 layout_weight 筆記
- 關于安裝APK到Genymation 模擬器報 install failed cpu abi incompatible
- Error:Execution failed for task ':app:packageDebug'. > Duplicate files copied in APK META-INF/LICENS
- 仿QQ6.1手勢鎖
- 當expandlistview的getGroupView或者getChildView中包含checkbox時,前者點擊不可用
- 在genymotion官網下載genymotion-2.6.0-vbox.exe安裝完成模擬器不可用的問題解決
- android studio logcat 打印不出信息
- 去掉友盟分享里面不需要的平臺
- 在有EditText的界面 默認情況下不獲取焦點(不彈出輸入框)
- android studio 導入第三方庫的記錄
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'解決記錄
- Edittext In Listview,當listview的item中有edittext時,怎么保存edittext的值?