如何让我的移动 AIR 应用程序保持横向模式? [英] How do I keep my mobile AIR application on landscape mode?

查看:25
本文介绍了如何让我的移动 AIR 应用程序保持横向模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎找不到任何方法来强制它一直进入横向模式.当我转到 MyApp-app.xml 并将 <aspectRatio></aspectRatio> 标记编辑为 landscape 时,只有主视图是景观化的.如果我导航到第二个视图,它会返回纵向.有什么帮助吗?

I can't seem to find any way to force it to go landscape mode all the time. When I go to MyApp-app.xml and edit the <aspectRatio></aspectRatio> tags to landscape, only the main view is landscaped. If I navigate to the second view, it turns back to portrait. Any help?

推荐答案

您可以在文档的属性上进行设置.转到文件>发布设置>点击配置播放器(Air for Android"、Air for iOS"、Flash Player 11"等).现在,标记自动定向".

You can set it on Properties of the Document. Go to File>Publish Settings> Click on Configuration Player ("Air for Android", "Air for iOS", "Flash Player 11", etc). Now, mark the "Auto Orietation".

像这样:

现在,保存并测试.

这篇关于如何让我的移动 AIR 应用程序保持横向模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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