机器人:如何prevent显示虚拟键盘时调整窗口 [英] android : How to prevent resizing the window when displaying the virtual keyboard

查看:158
本文介绍了机器人:如何prevent显示虚拟键盘时调整窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是标签式的应用程序。有一个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.

我不想显示我的标签,当keyborad被显示。或者,我不想调整我的窗口。我需要的只是隐藏的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.

我用了所有选项机器人:windowSoftInputMode在我的清单。但我看不到任何差异。

I use all options with 'android:windowSoftInputMode' in my manifest. bUT I can not see any differences.

请给我的解决方案。

感谢你..

推荐答案

在虚拟键盘来的时候,视图不会重新调整大小,但它被移动。看到这个博客文章以prevent这一点。

When Virtual keyboard comes, the view is not re-sized but it gets moved. See this blog post to prevent this.

这篇关于机器人:如何prevent显示虚拟键盘时调整窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆