gpt4 book ai didi

java - fullsensor 的 screenOrientation 在 list 中出现错误

转载 作者:太空狗 更新时间:2023-10-29 13:36:29 24 4
gpt4 key购买 nike

我正在尝试进行一个将在 4 个方向上工作的项目。我在 AndroidManifest.xml android:screenOrientation="sensor" 上设置了它,它可以工作,但它只做 3 个方向。所以我将它设置为 android:screenOrientation="fullSensor" 用于 4 方向。不幸的是,我得到了这个错误

error: Error: String types not allowed (at 'screenOrientation' with value 
'fullSensor').

有人知道怎么做吗?

最佳答案

仅 API 级别 9 支持 fullSensor。

The orientation is determined by the device orientation sensor for any of the 4 orientations. This is similar to "sensor" except this allows any of the 4 possible screen orientations, regardless of what the device will normally do (for example, some devices won't normally use reverse portrait or reverse landscape, but this enables those). Added in API level 9.

引用http://developer.android.com/guide/topics/manifest/activity-element.html .

关于java - fullsensor 的 screenOrientation 在 list 中出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9919425/

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