[英]Disable landscape mode in Blackberry phonegap
I am developing a Blackberry app using Phonegap. 我正在使用Phonegap开发Blackberry应用程序。 In this how can I disable landscape mode and allow only portrait mode?
在这种情况下,如何禁用横向模式并仅允许纵向模式?
Add the below code in your config file:- 在您的配置文件中添加以下代码:-
<feature id="blackberry.app" >
<param name="orientation" value="portrait" />
</feature>
Hope this helps. 希望这可以帮助。
Update the config file and add the code below 更新配置文件并添加以下代码
<preference name="orientation" value="portrait" />
And to detail you may be look the 详细来说,您可能会
http://cmer.uoguelph.ca/freshlabs/Lab5A.pdf http://cmer.uoguelph.ca/freshlabs/Lab5A.pdf
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.