修复布局方向垂直? [英] Fix layout Orientation to vertical?
本文介绍了修复布局方向垂直?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
修正布局方向为纵向,并且不允许移动从纵向到左在运行时?
Fix layout Orientation to portrait and do not allow move from portrait to the left during run time?
推荐答案
在你的 AndroidMainfest.xml
文件中找到的活动要锁定到一个给定的旋转标签,并添加以下属性:
In your AndroidMainfest.xml
file find the tags of the activities you wish to lock to a given rotation, and add this attribute:
android:screenOrientation="portrait"
这篇关于修复布局方向垂直?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文