mgwt - 方向变化编程 [英] mgwt - Orientation change programatically

查看:193
本文介绍了mgwt - 方向变化编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能改变强制屏幕在GWT + mgwt应用程序特定的方向?比方说,我希望用户能够始终使用在横向模式中的应用。

Is it possible to change the enforce a particular orientation of screen in a gwt+mgwt application? Lets say I would want the users to always use the application in landscape mode.

推荐答案

这要看:是的,因为PhoneGap的应用程序,并没有在浏览器中

It depends: yes as phonegap app and no inside the browser.

如果您正在运行一个Web应用程序,你不要 T得到的方位任何控制。该浏览器处理你们。但是,如果你重新运行与PhoneGap的你可以设置你的应用程序内部的支持方向(同每一个本机应用程序)的应用程序。
与iOS,这将是您的应用程序的正常配置中。在Android上,这是你的Andr​​oid清单文件中。

If you are running as a web application you dont get any control on the orientation. The browser handles that for you. But if youre running as an application with phonegap you can set the supported orientations inside your app (same as every native app). With iOS this would be inside the normal configuration of your app. On Android this is inside your android manifest file.

这篇关于mgwt - 方向变化编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆