修正布局方向为纵向,并且不允许移动从纵向到左在运行时?
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"