简体   繁体   English

Android上的Cordova:如果显示虚拟键盘,如何停止屏幕缩小?

[英]Cordova on Android : How to stop shrinking of screen if virtual keyboard is displayed?

Helo, 喂,

I have a problem with screen shrinking on Android devices if virtual keyboard is displayed.I would like to keep screen without shrinking. 如果显示虚拟键盘,我在Android设备上的屏幕缩小有问题,我想保持屏幕不缩小。

I tried to use following setting in cordova config.xml file in the root of the project: 我尝试在项目根目录的cordova config.xml文件中使用以下设置:

<preference name="Orientation" value="portrait"/>
  <preference name="KeyboardShrinksView" value="false" />
  <preference name="LoadingDialog" value="My Title,My Message"/>
  <preference name="DisallowOverscroll" value="false" />
  <preference name="fullscreen" value="false" />

But without the luck 但是没有运气

Or set directly these attributes: 或直接设置以下属性:

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

Into AndroidManifest.xml file. 放入AndroidManifest.xml文件。 But in this case are changes each time overwritten by running cordova build command. 但是在这种情况下,每次运行cordova build命令都会覆盖更改。

How can i solve it please? 我该如何解决?

Thanks for any help. 谢谢你的帮助。

See image below: 见下图:

在此处输入图片说明

更改清单条目..它将停止屏幕缩小。

android:windowSoftInputMode="adjustNothing"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Cordova + Android:如果显示虚拟键盘,如何停止屏幕缩小? - Cordova + Android: How to stop shrinking of screen if virtual keyboard is displayed? 显示虚拟键盘时如何将ListView划到屏幕底部? - How to stratch ListView to the bottom of the screen when virtual keyboard is displayed? 如何从屏幕(虚拟)键盘上获得压力? (机器人) - How to get pressure from on screen (Virtual) keyboard? (Android) 在网络视图上停止屏幕上的Android屏幕键盘弹出窗口 - stop android on screen keyboard popup on web view 停止出现在 Android Emulator 的屏幕键盘上? - Stop on screen keyboard appearing for Android Emulator? 打开Android键盘时,如何将Cordova应用程序全屏显示? - How do I keep my Cordova app full-screen when opening the Android keyboard? Android-显示键盘时; 隐藏一个布局视图并进行屏幕适配。 怎么样? - Android - when keyboard is displayed; hide one layout-view and screen-fit another. How? 当虚拟键盘出现在本机反应中时如何自动向上滚动屏幕(在 android 上) - How to auto scroll the screen up when virtual keyboard appears in react native (on android) 当键盘打开android时,布局正在缩小 - Layout is shrinking when keyboard opens android Android:如何关闭明确显示的软键盘? - Android: how to close explicitly displayed soft keyboard?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM