mgwt - 以编程方式更改方向 [英] mgwt - Orientation change programmatically

查看:106
本文介绍了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应用程序运行,您不必对方向进行任何控制。浏览器为你处理。但是如果作为带phonegap的应用程序运行,则可以在应用程序内设置支持的方向(与每个本机应用程序相同)。
对于iOS,这将在您的应用程序的正常配置内。在Android上,这是你的Android清单文件。

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天全站免登陆