android - Cordova +安卓 : How to stop shrinking of screen if virtual keyboard is displayed?

标签 android css cordova

你好,

如果显示虚拟键盘,我在 Android 设备上遇到屏幕缩小问题。我想保持屏幕不缩小。

见下图:

enter image description here

请问我该怎么做?

Cordova版本为4.2.0

非常感谢任何建议。

最佳答案

转到 AndroidManifest.xml,在您的主要 Activity 中添加两个属性

    android:windowSoftInputMode="adjustPan" 
    android:isScrollContainer="false"

希望它能解决您的问题。

关于android - Cordova +安卓 : How to stop shrinking of screen if virtual keyboard is displayed?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29196329/

相关文章:

android - 无法将数据库从版本 2 降级到版本 1

java - (CellIdentityLte) - 我该如何使用它?

android webview 显示最后看到的页面

css - Bootstrap 4 溢出隐藏在卡片布局内不起作用,而动画持续时间

html - CSS将文本垂直对齐到div的中间

android - phonegap android 中的 "Camera cancelled"错误

javascript - 在 PhoneGapp 应用程序上使用 Javascript 进行 Ajax 调用

android - Android WebView文件上传不支持zip文件

css - 将悬停效果应用于 2 个 div

javascript - Phonegap/Cordova-从临时目录中以文本形式读取文件