summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jon Eckenrode <joneckenrode@google.com> 2025-02-26 16:00:20 +0000
committer Jon Eckenrode <joneckenrode@google.com> 2025-02-26 17:19:37 +0000
commit02b5686ce1d06a88d0882be330d3cc9b2bd1250a (patch)
treed0cc602eb6c5b54fbc7d1244f92a015a1b8ea410
parentf896c7a126b4b5ac20b186e7f6f18cde851c070e (diff)
Added list of ignored values to screenOrientation attribute.
Flag: DOCS_ONLY Test: Built docs NO_BUG: None created Staged: https://android.devsite.corp.google.com/reference/android/R.attr#screenOrientation Change-Id: I2e6152cb14098f3155f32a782e4f59b5aa278854
-rw-r--r--core/res/res/values/attrs_manifest.xml17
1 files changed, 15 insertions, 2 deletions
diff --git a/core/res/res/values/attrs_manifest.xml b/core/res/res/values/attrs_manifest.xml
index 9983c459d71a..0905ae0bc155 100644
--- a/core/res/res/values/attrs_manifest.xml
+++ b/core/res/res/values/attrs_manifest.xml
@@ -854,8 +854,21 @@
<aside class="note"><b>Note:</b>
<ul>
<li>To improve the layout of apps on form factors with smallest width >= 600dp, the
- system ignores this attribute for apps that target Android 16 (API level 36) or
- higher.</li>
+ system ignores the following values of this attribute for apps that target
+ Android 16 (API level 36) or higher:
+ <ul>
+ <li><code>portrait</code></li>
+ <li><code>landscape</code></li>
+ <li><code>reversePortrait</code></li>
+ <li><code>reverseLandscape</code></li>
+ <li><code>sensorPortrait</code></li>
+ <li><code>sensorLandscape</code></li>
+ <li><code>userPortrait</code></li>
+ <li><code>userLandscape</code></li>
+ </ul>
+ <p>The values are treated as if the app had set orientation as
+ <code>unspecified</code>.</p>
+ </li>
<li>Device manufacturers can configure devices to override (ignore) this attribute
to improve the layout of apps.</li>
<li>On devices with Android 16 (API level 36) or higher installed, virtual device