<supports-screens>

syntax:
<supports-screens android:smallScreens=["true" | "false"] 
                  android:normalScreens=["true" | "false"] 
                  android:largeScreens=["true" | "false"] 
                  android:xlargeScreens=["true" | "false"]
                  android:anyDensity=["true" | "false"] />
contained in:
<manifest>
description:
Lets you specify the screen dimensions the application supports. By default a modern application (using API Level 4 or higher) supports all screen sizes and must explicitly disable certain screen sizes here; older applications are assumed to support only the "normal" screen size. Note that screen size is a separate axis from density. Screen size is determined as the available pixels to an application after density scaling has been applied.

Based on the target device screen density, the Android framework will scale down assets by a factor of 0.75 (low dpi screens) or scale them up by a factor of 1.5 (high dpi screens). The screen density is expressed as dots-per-inch (dpi).

For more information, see Supporting Multiple Screens.

attributes:
android:smallScreens
Indicates whether the application supports smaller screen form-factors. A small screen is defined as one with a smaller aspect ratio than the "normal" (traditional HVGA) screen. An application that does not support small screens will not be available for small screen devices, because there is little the platform can do to make such an application work on a smaller screen. If the application has set the <uses-sdk> element's android:minSdkVersion or android:targetSdkVersion attribute to "4" or higher, the default value for this is "true", any value less than "4" results in this set to "false".
android:normalScreens
Indicates whether an application supports the "normal" screen form-factors. Traditionally this is an HVGA medium density screen, but WQVGA low density and WVGA high density are also considered to be normal. This attribute is "true" by default, and applications currently should leave it that way.
android:largeScreens
Indicates whether the application supports larger screen form-factors. A large screen is defined as a screen that is significantly larger than a "normal" phone screen, and thus may require some special care on the application's part to make good use of it. An application that does not support large screens (declares this "false")—but does support "normal" or "small" screens—will be placed as a "postage stamp" on a large screen, so that it retains the dimensions it was originally designed for. If the application has set the <uses-sdk> element's android:minSdkVersion or android:targetSdkVersion attribute to "4" or higher, the default value for this is "true", any value less than "4" results in this set to "false".
android:xlargeScreens
Indicates whether the application supports extra large screen form-factors. An xlarge screen is defined as a screen that is significantly larger than a "large" screen, such as a tablet (or something larger) and may require special care on the application's part to make good use of it. An application that does not support xlarge screens (declares this "false")—but does support "large", "normal", or "small" screens—will be placed as a "postage stamp" on an xlarge screen, so that it retains the dimensions it was originally designed for. If the application has set the <uses-sdk> element's android:minSdkVersion or android:targetSdkVersion attribute to "4" or higher, the default value for this is "true", any value less than "4" results in this set to "false".

This attribute was introduced in API Level 9.

android:anyDensity
Indicates whether the application includes resources to accommodate any screen density. Older applications (before API Level 4) are assumed unable to accomodate all densities and this is "false" by default. Applications using API Level 4 or higher are assumed able to and this is "true" by default. You can explicitly supply your abilities here.
introduced in:
API Level 4
see also:
↑ Go to top