Androidmainifest Label Usage Instructions 5--<compatible-screens>

Source: Internet
Author: User

Format:
<compatible-screens>    <screen android:screensize=["small" | "Normal" | "Large" | "XLarge"]            android:screendensity=["ldpi" | "MDPI" | "HDPI" | "xhdpi"]/>    ...</compatible-screens>



Parent Tag:<manifest>


Description: Specifies that the screen is configured to be compatible with the app. Only one such label is allowed in the manifest. But can contain multiple <screen>. Each <screen> specifies a screen size density that is compatible with the application.
The Android system does not read <compatible-screens> tags. This tag is only available for external services like Google Play and is a better choice for the user.
If you want to Mughal your app to set a minimum size screen, you should use the <supports-screens> tab. There are also <supports-screens> in the same label.


Sub-label:<screen>

Used to specify a single screen configuration. An instance must contain the <compatible-screens>,<compatible-screens> must have Android:screensize and android:screendensity, It is illegal to do otherwise.


Properties: Android:screensize is required. An acceptable value of small|normal|large|xlarge.
Android:screendensity have to be. An acceptable value of ldpi|mdpi|hdpi|xhdpi.


Example:
< Manifest > ... <compatible-screens> <!--all small screens--<screen Android:screens Ize= "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 screens--<screen android:screensize= "Norma        L "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 ... > ... <applica Tion></manifest> 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.