diff options
Diffstat (limited to 'docs/html/guide/topics/manifest/compatible-screens-element.jd')
-rw-r--r-- | docs/html/guide/topics/manifest/compatible-screens-element.jd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/html/guide/topics/manifest/compatible-screens-element.jd b/docs/html/guide/topics/manifest/compatible-screens-element.jd index 8669874..5c89869 100644 --- a/docs/html/guide/topics/manifest/compatible-screens-element.jd +++ b/docs/html/guide/topics/manifest/compatible-screens-element.jd @@ -101,6 +101,38 @@ href="{@docRoot}guide/practices/screens_support.html#range">Supporting Multiple </dd> </dl> </dd> + +<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 +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> + +<pre> +<manifest ... > + ... + <compatible-screens> + <!-- all small size screens --> + <screen android:screenSize="small" android:screenDensity="ldpi" /> + <screen android:screenSize="small" android:screenDensity="mdpi" /> + <screen android:screenSize="small" android:screenDensity="hdpi" /> + <screen android:screenSize="small" android:screenDensity="xhdpi" /> + <!-- 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" /> + </compatible-screens> + <application ... > + ... + <application> +</manifest> +</pre> +</dd> + <dt>introduced in:</dt> <dd>API Level 9</dd> <dt>see also:</dt> |