Units in Android

Source: Internet
Author: User
Units in Android 1,px pixels (pixels) VGA   480*640 pixels (Video Graphics Array) QVGA  240*320 pixels (Quarter VGA) HVGA  320*480 pixels (Half-size VGA) WVGA  800*480 pixels (Wide VGA) WQVGA 400*240 pixels (Wide Quarter VGA) XGA   1024*480 pixels (Extended Graphics Array) 2,DP or dip Device independent pixels Description: DP and pixel density ratios are related to: DP * density ratio = px, so there is a common density ratio for the effect of automatically adapting to the screen: the density ratio of 240*320 is: 0.75EG:160DP * 0.75 = 120px320*480 density ratio is: 1.0160DP * 1.0  = 160px480*800 density ratio is: 1.5160DP * 1.5  = 240PX3,SP ratio pixels (scaled pixels-best For text size) Description: Used to handle the size of the font, you can automatically adapt to the font of the user's system "note" in order to adapt to different resolutions, different pixel density, the recommended use of DP, text using SP In addition to the above three display units, there are several less commonly used units: in (inches) inch mm (millimeters) mm  pt (points) point, 1/72 Inch

Units in Android

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.