问题
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?
Thank you in advance
回答1:
android:screenOrientation:
- landscape
- portrait
- unspecified
- behind
- reverseLandscape
- reversePortrait
- sensorLandscape
- sensorPortrait
For more information you can visit: Android Activity Element
回答2:
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"]
来源:https://stackoverflow.com/questions/23402717/how-to-set-portrait-mode-with-libgdx