我需要了解屏幕方向
、用户图像
和纵向
之间的真正区别。什么时候使用什么?
何时使用?
android:screenOrientation="portrait"
什么时候?
android:screenOrientation="userPortrait"
我需要了解屏幕方向
、用户图像
和纵向
之间的真正区别。什么时候使用什么?
何时使用?
android:screenOrientation="portrait"
什么时候?
android:screenOrientation="userPortrait"
"portrait" Portrait orientation (the display is taller than it is wide).
和
"userPortrait"
以纵向方式显示,但会根据设备传感器和用户传感器偏好自动切换成普通纵向或反转纵向。如果用户锁定了基于传感器的旋转,则行为与纵向相同,否则行为与sensorPortrait相同。API级别18中添加。
请参阅http://developer.android.com/guide/topics/manifest/activity-element.html。