Android screen size and density table, and explanations of pixel units such as PX, dip, and SP

Source: Internet
Author: User

The concepts of PX, dip, SP, and DP are vague. I checked it online and found it clearly in theory.

1. PX (pixels): the point on the screen, which is related to the density. The density is high, and the PX size per unit area is large.

2. Dip or DP (pixels unrelated to density ). This is related to the hardware of the device. We recommend that you use this feature to support WVGA, hvga, and qvga 5 hexadecimal space. An abstract unit based on screen density. You can use this option to set the width and height of some views. Generally, you do not feel scaled at different resolutions. If PX is used, 320px is full of the width of hvga, and only half of the screen can be occupied by WVGA, it must not be what you want.
3. Sp (pixel unrelated to the scale) scales up the pixel-mainly processing the font size.

Screen size and density table:

In manifest, the following shows whether the app supports the multi-density method at different resolutions.
<Manifest xmlns: Android = "http://schemas.android.com/apk/res/android">
...
<Supports-screens
Android: smallscreens = "true"
Android: normalscreens = "true"
Android: largescreens = "true"
Android: xlargescreens = "true"
Android: anydensity = "true"/>
</Manifest>

Related Article

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.