久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

與 EditText 字段重疊的軟鍵盤

Soft Keyboard Overlapping with EditText Field(與 EditText 字段重疊的軟鍵盤)
本文介紹了與 EditText 字段重疊的軟鍵盤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我發現 this 舊帖子肯定有助于解決我的問題,但我注意到它似乎并沒有真正解決我的問題.我已經收集到我需要為我的活動設置 android:windowSoftInputMode="adjustPan" .但問題是它根本不夠平移.

I found this old post which definitely helps with my problem, but I'm noticing that it doesn't really seem to solve my problem. I have gathered that I need to set android:windowSoftInputMode="adjustPan" for my activity. But the issue is that it simply doesn't pan ENOUGH.

文本字段位于視圖的底部,當鍵盤出現時,視圖會稍微移動,但只會移動到 EditText 的最頂部.文本字段已打開自動完成功能,當它開始顯示自動完成選項時,視圖會稍微向下平移,但實際上最終會被自動完成選項進一步遮擋.這使得文本輸入字段很難使用,因為您看不到正在輸入的任何內容.

The text field is toward the bottom of the view, and when the keyboard shows up, the view shifts slightly but only the very top of the EditText. The text field has autocomplete turned on, and when it begins to show autocomplete options, the view pans down slightly more, but actually winds up even further obscured by the autocomplete options. It makes the text input field very difficult to use since you can't see anything you're typing.

這是一個多行輸入字段,當文本滾動到下一行時,視圖會平移更遠,因此您實際上可以看到上一行文本.但是你看不到你在輸入什么,我認為這很重要.

It is a multiline input field, and when text rolls to the next line, the view pans farther, so you can actually see the previous line(s) of text. But you cannot see what you're typing, which I think is pretty important.

有人對解決這個問題有什么想法嗎?

Does anyone have any thoughts on solving this issue?

推薦答案

所以,我找到了問題的原因.在我設置的 AndroidManifest.xml 中

So, I've found what appears to be the cause of the issue. In my AndroidManifest.xml I had set

<uses-sdk android:minSdkVersion="3" />

顯然,使用低于4"的 minSdkVersion 是問題的根源.將其更改為4"后,布局顯示為應有的樣子,并且 EditText 的第一行適當地位于軟鍵盤頂部上方.

Apparently, using a minSdkVersion below "4" was at the root of the problem. On changing it to "4", the layout appeared as it should have, and the EditText had its first line above the top of the soft keyboard appropriately.

感謝您的幫助,火衛一.

Thanks for the help, Phobos.

這篇關于與 EditText 字段重疊的軟鍵盤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

EditText: Disable Paste/Replace menu pop-up on Text Selection Handler click event(EditText:禁用文本選擇處理程序單擊事件上的粘貼/替換菜單彈出)
Multiline EditText with Done SoftInput Action Label on 2.3(2.3 上帶有完成 SoftInput 操作標簽的多行 EditText)
How to detect the swipe left or Right in Android?(如何在 Android 中檢測向左或向右滑動?)
Prevent dialog dismissal on screen rotation in Android(防止在Android中的屏幕旋轉對話框解除)
How do I handle ImeOptions#39; done button click?(如何處理 ImeOptions 的完成按鈕點擊?)
How do you set EditText to only accept numeric values in Android?(您如何將 EditText 設置為僅接受 Android 中的數值?)
主站蜘蛛池模板: 国产激情91久久精品导航 | 午夜视频网站 | 欧美激情第一区 | 一区二区三区四区免费视频 | 国产日韩一区二区三区 | 一区二区三区视频在线观看 | 男女视频91| 日本不卡一区二区三区在线观看 | 亚洲精品电影网在线观看 | 日韩av在线播 | 在线免费观看成人 | 日韩欧美在线观看 | 综合婷婷 | 亚洲欧美日韩电影 | 欧美亚洲一区二区三区 | 国产一区二区三区www | 久久久99精品免费观看 | 日韩成人在线观看 | 在线观看免费av网 | 午夜看电影在线观看 | 性欧美hd| 久久精品免费看 | 九九热在线免费视频 | 亚洲欧美精品久久 | 在线91| 欧美精品久久久久 | 国产第一区二区 | 正在播放国产精品 | 一区二区高清 | 欧美日韩一区精品 | 三级在线观看 | 免费一级片 | 一区二区精品 | 国产视频精品视频 | 大学生a级毛片免费视频 | 精品国产91亚洲一区二区三区www | 91xxx在线观看 | 毛片大全 | 国产第二页 | 欧美综合一区二区 | 久久精品国产精品青草 |