問題描述
我正在使用選項卡式應用程序.我的應用程序有一個 EditText.當我單擊 EditText 時,窗口正在調整大小,并且虛擬鍵盤顯示在窗口底部.但是四個選項卡顯示在鍵盤頂部.
I am using a tabbed application. There is an EditText my application. When I click on the EditText, the window is getting resized and the virtual keyboard is displaying at the bottom of the window. But the four tabs are displaying at the top of the keyboard.
我不想在顯示鍵盤時顯示我的選項卡.或者我不想調整我的窗口大小.我的需要只是隱藏 EditText 下方的選項卡和其他內容.
I do not want to display my tabs, when the keyborad is displaying. Or I do not want to resize my window. My need is just to hide the tabs and other things below the EditText.
我在清單中使用所有帶有android:windowSoftInputMode"的選項.但我看不出有什么不同.
I use all options with 'android:windowSoftInputMode' in my manifest. bUT I can not see any differences.
請給我解決辦法.
謝謝你..
推薦答案
當虛擬鍵盤出現(xiàn)時,視圖不會重新調整大小而是移動.請參閱此 博文 以防止這個.
When Virtual keyboard comes, the view is not re-sized but it gets moved. See this blog post to prevent this.
另見
在 Android 中處理鍵盤輸入
這篇關于android:顯示虛擬鍵盤時如何防止調整窗口大小的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!