我已经创建了一款游戏,在桌面模式下也可以,但是当我在S3上启动它时,它会进入横向模式,我该如何更改?
提前谢谢
答案 0 :(得分:23)
机器人:screenOrientation:
有关详细信息,请访问: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"]