Android屏幕设置只允许上下旋转
作者:互联网
android:screenOrientation = ["unspecified" | "behind" |
"landscape" | "portrait" |
"reverseLandscape" | "reversePortrait" |
"sensorLandscape" | "sensorPortrait" |
"userLandscape" | "userPortrait" |
"sensor" | "fullSensor" | "nosensor" |
"user" | "fullUser" | "locked"]
带sensor的都是会根据重力旋转的。
标签:sensorPortrait,sensorLandscape,旋转,portrait,Android,sensor,屏幕 来源: https://www.cnblogs.com/zhaogaojian/p/10488827.html