Titanium Android Screen Orientation

守給你的承諾、 提交于 2019-12-10 14:34:07

问题


I have made an Android app using Titanium. The screen rotates when device rotate, how can i stop window/screen orientation in Android app?


回答1:


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

See this: Activity




回答2:


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.



来源:https://stackoverflow.com/questions/5348602/titanium-android-screen-orientation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!