diff options
author | Adam Lesinski <adamlesinski@google.com> | 2015-10-09 13:14:07 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2015-10-12 18:25:42 +0000 |
commit | 06c07a1207415ac931a72f81c3ec28b656c1b7dd (patch) | |
tree | 355049735b36627136f8dfc4bbcfdc091faf4e94 /docs/html | |
parent | 5c18d0517749cf2e65d19ea6bec938a4eb6c39e5 (diff) | |
download | frameworks_base-06c07a1207415ac931a72f81c3ec28b656c1b7dd.zip frameworks_base-06c07a1207415ac931a72f81c3ec28b656c1b7dd.tar.gz frameworks_base-06c07a1207415ac931a72f81c3ec28b656c1b7dd.tar.bz2 |
Add additional density enums to android:screenDensity attribute
Bug:24804021
Change-Id: I70c34da9ca5d186aa1ffaacf7f15180d4c4b81e1
Diffstat (limited to 'docs/html')
-rw-r--r-- | docs/html/guide/topics/manifest/compatible-screens-element.jd | 16 |
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> <<a href="#compatible-screens">compatible-screens</a>> <<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"] /> + android:<a href="#screenDensity">screenDensity</a>=["ldpi" | "mdpi" | "hdpi" | "xhdpi" | "xxhdpi" | "xxxhdpi"] /> ... </compatible-screens> </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 <screen>} 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 <screen>} 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 <screen android:screenSize="small" android:screenDensity="mdpi" /> <screen android:screenSize="small" android:screenDensity="hdpi" /> <screen android:screenSize="small" android:screenDensity="xhdpi" /> + <screen android:screenSize="small" android:screenDensity="xxhdpi" /> + <screen android:screenSize="small" android:screenDensity="xxxhdpi" /> <!-- all normal size screens --> <screen android:screenSize="normal" android:screenDensity="ldpi" /> <screen android:screenSize="normal" android:screenDensity="mdpi" /> <screen android:screenSize="normal" android:screenDensity="hdpi" /> <screen android:screenSize="normal" android:screenDensity="xhdpi" /> + <screen android:screenSize="normal" android:screenDensity="xxhdpi" /> + <screen android:screenSize="normal" android:screenDensity="xxxhdpi" /> </compatible-screens> <application ... > ... |