如何设置人像模式libGDX? [英] How to set portrait mode with libGDX?
本文介绍了如何设置人像模式libGDX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个游戏,它是在桌面模式下好了,但是当我启动它在我的S3,它会在横向模式下,我能怎样改变?
I've created a game, and it is OK in desktop mode, but when i launch it on my S3, it goes in landscape mode, how can i change it?
感谢您提前
推荐答案
有一个看的<$c$c><activity>$c$c>元素。您可以设置取向:
Have a look at the <activity>
element. You can set the orientation as:
android:screenOrientation=["unspecified" | "behind" |
"landscape" | "portrait" |
"reverseLandscape" | "reversePortrait" |
"sensorLandscape" | "sensorPortrait" |
"userLandscape" | "userPortrait" |
"sensor" | "fullSensor" | "nosensor" |
"user" | "fullUser" | "locked"]
这篇关于如何设置人像模式libGDX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文