[英]Cordova + 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设备上的屏幕缩小有问题,我想保持屏幕不缩小。
See image below: 见下图:
How can i do it please? 我该怎么办?
Cordova version is 4.2.0 科尔多瓦版本是4.2.0
Many thanks fro any advice. 非常感谢任何建议。
Go to AndroidManifest.xml, in your main activity add the two properties 转到AndroidManifest.xml,在您的主要活动中添加两个属性
android:windowSoftInputMode="adjustPan"
android:isScrollContainer="false"
Hope it might solve your problem. 希望它可以解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.