Reference Link: http://developer.android.com/guide/topics/manifest/supports-screens-element.html
<supports-screens> is a child node of <manifest>. This element is used to specify the screen size supported by the application and to enable screen compatibility mode for larger screens than those supported by the application. It is important to use this element in your application to specify the screen size that your application supports.
If the application resizes the Size property to fill the entire screen, then the application will support this given size. Usually for most applications, the system can do a good job of doing this, and in order for the application to work on a screen larger than a handheld device, you don't need to do any extra work. However, for different screen sizes, it is often important to optimize the application's UI by providing an optional layout resource. For example, an activity layout that runs on a handheld device requires you to modify the layout of the activity if you want to run it on a tablet.
However, if the size is resized to accommodate different screen sizes, but the application does not work well, you can use the properties of the <supports-screens> element to control whether the application should be published to a smaller screen device, or to use the system's screen compatibility mode. Let the UI zoom in to fit the larger screen's requirements. In the absence of a design for a larger screen size, and the normal size does not meet the right results, the screen's compatibility mode scales the UI by simulating a normal-sized screen and medium density so that it fills the entire screen, which can cause the UI to blur, so optimizations for large screens are better.
Note: Android3.2 introduces new properties: ANDROID:REQUIRESSMALLESTWIDTHDP, ANDROID:COMPATIBLEWIDTHLIMITDP, and Android: LARGESTWIDTHLIMITDP. If you are developing Android3.2 or later applications, you should use these properties to declare the screen sizes supported by your application, rather than based on the general screen size properties.
Grammar:
<Supports-screensandroid:resizeable=["true" |"false"] Android:smallscreens=["true"| "false"] Android:normalscreens=["true"| "false"] Android:largescreens=["true"| "false"] Android:xlargescreens=["true"| "false"] android:anydensity=["true"| "false"] ANDROID:REQUIRESSMALLESTWIDTHDP= "integer"ANDROID:COMPATIBLEWIDTHLIMITDP= "integer"ANDROID:LARGESTWIDTHLIMITDP= "integer"/>
Property:
Android:resizeable
This property is used to indicate whether the application can resize for different screen sizes. The default value is true. If this property is set to false, on a large screen, the system will run the application in screen compatibility mode.
This attribute was deprecated, and the introduction of this property was primarily intended to help the application transition from 1.5 to 1.6. When multi-screen support is introduced, it should not be used.
Android:smallscreens
This property is used to specify whether the application supports a smaller form factor screen. A small type of screen is defined as a screen that is smaller than the normal (traditional HVGA) type of screen. External services, such as Google Play, do not provide small-screen apps for applications that do not support small screens, as there are few platforms that can ensure that the application works on a small screen device. The default value for this property is true.
Android:normalscreens
This property is used to indicate whether the application supports a normal form factor screen. The typical HVGA is a medium-density screen, but WQVGA low-density and WVGA high-density screens are also considered normal screens. The default value for this property is true.
Android:largescreens
This property is used to indicate whether the application supports a larger form factor screen. A large type of screen is defined as a screen that is significantly larger than the screen of the normal type of handheld device, and in order for the application to work well, use this property with particular care, although you can rely on the system to resize it to fill the screen.
The default value of this property is actually different between some versions, so it is best to explicitly declare this property at any time. If set to False, the system will enable screen compatibility mode, so be extra careful.
Android:xlargescreens
This property is used to indicate whether the application supports large-form screens. A xlarge screen is defined as a screen larger than the large screen, such as a tablet, which needs to be used with great care in order for the application to work well, although it can rely on the system to fill the screen with the size of the UI.
Android:anydensity
This property indicates whether the application contains resources that can be applied to any screen density.
For applications that support Android1.6 (API level 4) and later, the default value for this property is true, and it should not be set to false unless you absolutely acknowledge that this is necessary for the application to work properly. It is only necessary to suppress this property when the application directly operates the bitmap.
Android:requiressmallestwidthdp
Specifies the minimum fit screen width (unit DP), which is applied to run in compatibility mode if the device screen width is less than the specified value.
Android:compatiblewidthlimitdp
Mark when the Device screen width (unit DP) is greater than this value, prompting the user to switch to compatibility mode.
Android:largestwidthlimitdp
Mark when the Device screen width (unit DP) is greater than this value, force this value to switch to compatibility mode.
Displaymetrics metrics = new Displaymetrics ();
Getwindowmanager (). Getdefaultdisplay (). Getmetrics (metrics);
Get Displaymetrics instances to get screen pixel density and size
Androidmanifest.xml <supports-screens> Nodes