Lib*_*bin 13 android android-orientation
我需要知道的真正的区别screen orientation userPortrait和portrait.什么时候用?
什么时候?
android:screenOrientation="portrait"
Run Code Online (Sandbox Code Playgroud)
什么时候?
android:screenOrientation="userPortrait"
Run Code Online (Sandbox Code Playgroud)
Saj*_*ath 13
"portrait" Portrait orientation (the display is taller than it is wide).
Run Code Online (Sandbox Code Playgroud)
和
"userPortrait"
Run Code Online (Sandbox Code Playgroud)
纵向,但可以是基于设备传感器和用户传感器首选项的正常或反向纵向.如果用户已锁定基于传感器的旋转,则其行为与纵向相同,否则其行为与sensorPortrait相同.在API级别18中添加.
请查看http://developer.android.com/guide/topics/manifest/activity-element.html