summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-10-12 22:21:36 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-10-12 22:21:36 +0000
commit56f9a422be2d600da48d559e4838d07a44676c72 (patch)
treebc716007af8aa1680d9c16c6229e892cfe976756 /docs
parentff1e8f7eeeb037a296d1fe49600927b5665fe8b7 (diff)
parent1c9d43eb0f6cdb33cc004b674b117da95230ce59 (diff)
downloadframeworks_base-56f9a422be2d600da48d559e4838d07a44676c72.zip
frameworks_base-56f9a422be2d600da48d559e4838d07a44676c72.tar.gz
frameworks_base-56f9a422be2d600da48d559e4838d07a44676c72.tar.bz2
am 1c9d43eb: am bde2707f: Merge "Add additional density enums to android:screenDensity attribute" into mnc-dr-dev
* commit '1c9d43eb0f6cdb33cc004b674b117da95230ce59': Add additional density enums to android:screenDensity attribute
Diffstat (limited to 'docs')
-rw-r--r--docs/html/guide/topics/manifest/compatible-screens-element.jd16
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/html/guide/topics/manifest/compatible-screens-element.jd b/docs/html/guide/topics/manifest/compatible-screens-element.jd
index 3606b15..de921d2 100644
--- a/docs/html/guide/topics/manifest/compatible-screens-element.jd
+++ b/docs/html/guide/topics/manifest/compatible-screens-element.jd
@@ -9,7 +9,7 @@ parent.link=manifest-intro.html
<pre>
&lt;<a href="#compatible-screens">compatible-screens</a>&gt;
&lt;<a href="#screen">screen</a> android:<a href="#screenSize">screenSize</a>=["small" | "normal" | "large" | "xlarge"]
- android:<a href="#screenDensity">screenDensity</a>=["ldpi" | "mdpi" | "hdpi" | "xhdpi"] /&gt;
+ android:<a href="#screenDensity">screenDensity</a>=["ldpi" | "mdpi" | "hdpi" | "xhdpi" | "xxhdpi" | "xxxhdpi"] /&gt;
...
&lt;/compatible-screens&gt;
</pre>
@@ -94,11 +94,9 @@ href="{@docRoot}guide/practices/screens_support.html#range">Supporting Multiple
<li>{@code mdpi}</li>
<li>{@code hdpi}</li>
<li>{@code xhdpi}</li>
+ <li>{@code xxhdpi}</li>
+ <li>{@code xxxhdpi}</li>
</ul>
- <p class="note"><strong>Note:</strong> This attribute currently does not accept
- {@code xxhdpi} as a valid value, but you can instead specify {@code 480}
- as the value, which is the approximate threshold for xhdpi screens.</p>
-
<p>For information about the different screen densities, see <a
href="{@docRoot}guide/practices/screens_support.html#range">Supporting Multiple Screens</a>.</p>
</dd>
@@ -110,8 +108,8 @@ href="{@docRoot}guide/practices/screens_support.html#range">Supporting Multiple
<dt>example</dt>
<dd>
<p>If your application is compatible with only small and normal screens, regardless
-of screen density, then you must specify eight different {@code &lt;screen&gt;} elements,
-because each screen size has four different density configurations. You must declare each one of
+of screen density, then you must specify twelve different {@code &lt;screen&gt;} elements,
+because each screen size has six different density configurations. You must declare each one of
these; any combination of size and density that you do <em>not</em> specify is considered a screen
configuration with which your application is <em>not</em> compatible. Here's what the manifest
entry looks like if your application is compatible with only small and normal screens:</p>
@@ -125,11 +123,15 @@ entry looks like if your application is compatible with only small and normal sc
&lt;screen android:screenSize="small" android:screenDensity="mdpi" />
&lt;screen android:screenSize="small" android:screenDensity="hdpi" />
&lt;screen android:screenSize="small" android:screenDensity="xhdpi" />
+ &lt;screen android:screenSize="small" android:screenDensity="xxhdpi" />
+ &lt;screen android:screenSize="small" android:screenDensity="xxxhdpi" />
&lt;!-- all normal size screens -->
&lt;screen android:screenSize="normal" android:screenDensity="ldpi" />
&lt;screen android:screenSize="normal" android:screenDensity="mdpi" />
&lt;screen android:screenSize="normal" android:screenDensity="hdpi" />
&lt;screen android:screenSize="normal" android:screenDensity="xhdpi" />
+ &lt;screen android:screenSize="normal" android:screenDensity="xxhdpi" />
+ &lt;screen android:screenSize="normal" android:screenDensity="xxxhdpi" />
&lt;/compatible-screens>
&lt;application ... >
...