gpt4 book ai didi

android - screenOrientation portrait 和 userPortrait 有什么区别

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:41:25 42 4
gpt4 key购买 nike

我需要知道屏幕方向 userPortraitportrait 的真正区别。什么时候用什么?

什么时候?

 android:screenOrientation="portrait"

什么时候?

 android:screenOrientation="userPortrait"

最佳答案

"portrait"  Portrait orientation (the display is taller than it is wide).

"userPortrait"  

Portrait orientation, but can be either normal or reverse portrait based on the device sensor and the user's sensor preference. If the user has locked sensor-based rotation, this behaves the same as portrait, otherwise it behaves the same as sensorPortrait. Added in API level 18.

检查 http://developer.android.com/guide/topics/manifest/activity-element.html

关于android - screenOrientation portrait 和 userPortrait 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23371766/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com