久久久久久久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 中的數值?)
主站蜘蛛池模板: 欧美激情视频一区二区三区免费 | 免费欧美视频 | 欧美日韩成人在线 | 日本国产一区二区 | 国产成人精品综合 | 三a毛片 | 黄色毛片大全 | 日本成人中文字幕 | 一级欧美黄色片 | 中文字幕第二十页 | 成年人免费网站 | 成年免费在线观看 | 欧美a在线观看 | 久久精品国产一区老色匹 | 国产高清视频在线观看 | 午夜成人免费视频 | 国产精品一区二区在线 | av中文在线观看 | 久久精品一区二区视频 | 亚洲精品成人av久久 | 国产超碰人人爽人人做人人爱 | www.成人久久 | 欧美成视频 | 国产亚洲精品久久久优势 | 欧美一级片在线播放 | 97人人澡人人爽91综合色 | 91精品一区 | 视频精品一区 | 亚洲va在线va天堂va狼色在线 | 99在线免费观看 | 欧美日韩福利视频 | 精品国产18久久久久久二百 | 亚洲二区在线 | 色婷婷综合久久久中字幕精品久久 | 国产精品国产三级国产aⅴ入口 | 日韩精品久久久 | 日韩欧美中文字幕在线观看 | 91精品一区二区三区久久久久 | 黄色一级免费看 | 国产成人精品免高潮在线观看 | 一区二区三区高清 |