开发者

Titanium Android Screen Orientation

I have made an Android app using Titanium. The screen rotates when device rotate, how can i stop windo开发者_如何学Gow/screen orientation in Android app?


Use android:screenOrientation="portrait" in the Android Manifest file in the <activity> element.

See this: Activity


I spent my whole day to solve this stupid issue, finally i found the solution to solve the android orientation issue.

Please refer to link here. The article is helpful and clearly stated step by step how to implement.

This also solved the splash screen orientation.

Thanks.


You can also use this in you app.tss or in the tss file of the concerned screen

"Window":{
    orientationModes : [Titanium.UI.PORTRAIT]
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜