本文介紹了Android鍵盤將標簽欄放在頂部的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我在應用程序中打開鍵盤時遇到了一點問題.我有一個位于頁面底部的標簽欄,在某些情況下,并非總是當我點擊編輯文本并顯示鍵盤時,它會將我的標簽欄移到它上面.這是一個例子:
I have a little problem when I open keyboard in my application. I have a tab bar which is on bottom of page and in some situations, not always when I click on edit text and keyboard shows up, it's moving my tab bar on top of it. Here is an example :
所以我的問題是:有沒有辦法禁用它.我希望我的標簽欄在顯示時保持隱藏在鍵盤下.
So my question is : Is there any way to disable this. I want my tab bar to stay hidden under keyboard when it shows up.
提前致謝!
推薦答案
在清單文件中為您的活動添加這些屬性:
add these properties for your activity in manifest file:
android:windowSoftInputMode="stateHidden|adjustResize|adjustPan"
希望對你有幫助
這篇關于Android鍵盤將標簽欄放在頂部的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!