如何能在横向屏幕方向在Android的限制? [英] How can the landscape screen orientation be restricted in android?
本文介绍了如何能在横向屏幕方向在Android的限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何能在横向屏幕方向被限制在机器人?
How can the landscape screen orientation be restricted in android?
推荐答案
你提的问题很短,但我相信你是问如何限制一个活动的显示,以特定的方向。要做到这一点尝试使用安卓screenOrientation
在<活动>
标记(S)在你的清单文件。
Your question is very short, but I believe you are asking how to restrict an Activity's display to a specific orientation. To do so try using the android:screenOrientation
in the <Activity>
tag(s) in your Manifest file.
<一个href="http://developer.android.com/intl/de/guide/topics/manifest/activity-element.html#screen">http://developer.android.com/intl/de/guide/topics/manifest/activity-element.html#screen
这篇关于如何能在横向屏幕方向在Android的限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文