如何用libGDX设置肖像模式?

时间:2014-05-01 05:48:49

标签: java android libgdx

我已经创建了一款游戏,在桌面模式下也可以,但是当我在S3上启动它时,它会进入横向模式,我该如何更改?

提前谢谢

2 个答案:

答案 0 :(得分:23)

enter image description here

机器人:screenOrientation:

  • 景观
  • 肖像
  • 不确定
  • 后面
  • reverseLandscape
  • reversePortrait
  • sensorLandscape
  • sensorPortrait

有关详细信息,请访问:Android Activity Element

答案 1 :(得分:14)

查看<activity> element。您可以将方向设置为:

android:screenOrientation=["unspecified" | "behind" |
                                     "landscape" | "portrait" |
                                     "reverseLandscape" | "reversePortrait" |
                                     "sensorLandscape" | "sensorPortrait" |
                                     "userLandscape" | "userPortrait" |
                                     "sensor" | "fullSensor" | "nosensor" |
                                     "user" | "fullUser" | "locked"]
相关问题