android : How to prevent resizing the window when displaying the virtual keyboard(android:显示虚拟键盘时如何防止调整窗口大小)
问题描述
我正在使用选项卡式应用程序.我的应用程序有一个 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.
请给我解决办法.
谢谢你..
推荐答案
当虚拟键盘出现时,视图不会重新调整大小而是移动.请参阅此 博文 以防止这个.
When Virtual keyboard comes, the view is not re-sized but it gets moved. See this blog post to prevent this.
另见
在 Android 中处理键盘输入
这篇关于android:显示虚拟键盘时如何防止调整窗口大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:android:显示虚拟键盘时如何防止调整窗口大小
基础教程推荐
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
