在界面的最外層xml文件上面添加如下兩個屬性:
android:focusable=“true”
android:focusableInTouchMode=“true”
之後在加載界面時就不會自動彈出鍵盤了
Android 界面有EditText組件時,加載界面自動彈出軟鍵盤問題
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
android 項目中嵌入百度地圖遇到的坑及錯誤LocationAuthManager Authentication Error errorcode = 230
一人一花
2020-07-06 16:40:48
android打包簽名
一人一花
2020-07-06 16:40:48
android 版本升級
在app上面有一個版本升級的功能,我們在服務器上傳了新的安裝包之後,就可以點擊更新版本去拿到服務器上面的新包並更新 拿到當前版本的版本號: /** * 拿到versionName * * @retur
一人一花
2020-07-06 16:40:48
Android :java.lang.RuntimeException: An error occurred while executing doInBackground()
一人一花
2020-07-06 16:40:48
android 獲取versionCode versionName的值
一人一花
2020-07-06 16:40:48
eclipse中導入外部的jar
Step 1: 依次進入 Window -> Preferences -> Java -> Build Path -> User Libraries ; Step 2: 在 User Libr
底线三分
2020-07-05 05:30:43
Android數據綁定dataBinding的使用方法
火龙映天
2020-07-03 21:59:00
Android中接入極光推送
火龙映天
2020-07-03 21:59:00
Ubuntu adb shell 出現 insufficient permissions for device
辛勤的摆渡人
2020-07-03 12:50:09
百度地圖集成騎行導航和駕車導航
宅男嗯
2020-07-03 03:14:41
解決使用RxJava時出現的io.reactivex.exceptions.UndeliverableException異常問題
火龙映天
2020-06-30 00:42:59
對apk進行重新簽名
dianer_come_on
2020-06-30 00:12:23
android app測試使用過的測試工具總結(持續更新)
EYPHKA
2020-06-29 11:19:23
[monkeyrunner]使用monkeyrunner遇到的Permission Denial: starting Intent問題
EYPHKA
2020-06-29 11:19:23