Android measurement unit, android measurement unit

Source: Internet
Author: User

Android measurement unit, android measurement unit

Unit Note
Px (pixels) Each pixel corresponds to a point on the mobile phone, and the length indicated by 1 px on different devices is not necessarily the same
Screen size) The length of the diagonal line of the mobile phone, such as 4.7 inch.
Resolution (resolution) The number of pixels on the screen, such as 480*320. The higher the Resolution, the clearer the screen size.
Dpi (pixel density) The number of bytes per inch. The inch is the unit of length, 1 inch = 2.54, meaning that it is consistent with DisplayMetrics. densityDpi.
Dip (Device Independent Unit) Pixel length independent, px/dips = dpi/160, dips = (px * 160)/dpi
Density The number of pixels each dip represents, which is the same as DisplayMetrics. density.
Sp (scaled pixels) Used to set the font size.

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.