Apache Cordova 纵向强制不起作用

Apache Cordova portrait orientation forcing not working

在 Visual Studio 2015 Apache Cordova 应用程序中,我转到 config.xml 文件并设置 Orientation = "Portrait"。当我在所有 Android 模拟器和真实设备中看到结果时,此设​​置无效,因为如果我转动设备,页面布局将被完全破坏。

我针对这个问题进行了很多搜索,但找不到任何解决方案。当 phone 处于横向模式时,我是否需要花费数小时来管理布局?

when I launch the Ripple emulators and I switch to landscape mode, it adapts the screen content.

这就是问题所在。 Ripple 不提供 Cordova API 或本机设备功能(插件)的完整模拟。

请参考Cautions of Run your Apache Cordova app on the Apache Ripple simulator

所以请在真实设备或模拟器上尝试。我在模拟器上试了一下,没问题。