我正在开发一个 BlackBerry Phonegap 应用程序,我想将应用程序的方向设置为纵向。为此,我添加了 <preference name="orientation" value="portrait" />
在 config.xml 文件中,但它不起作用。
我使用的是 Phonegap 2.4.0 版。谁能帮我设置方向?
最佳答案
您需要在 config.xml 文件中像这样锁定方向
<feature id="blackberry.app">
<param name="orientation" value="portrait" />
</feature>
config.xml 的文档可在此处找到 - http://developer.blackberry.com/html5/documentation/param_element.html
关于blackberry - 如何在 blackberry phonegap 中设置方向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15112764/