[Android screen size] various concepts and ways of mutual transformation

Source: Internet
Author: User

Ppi

That is, the number of pixels per inch. Pixels per inch represents the number of pixels (pixel) that are owned by inches. Therefore, the higher the PPI value, which means that the display can display the image at higher density. Of course, the higher the density of the display, the higher the fidelity. The higher the image PPI value, the richer the detail of the screen as the number of pixels in the unit area is greater. Of course, it's just a measure of how the screen looks.

Dpi

Screen density

The number of pixels in a unit (typically in inches) in the physical area of the screen, typically referred to as DPI (the number of dots contained in dots per inch).

Dip (DP)

Independent pixel units (density-independent pixel (DP))

A virtual unit that is used to set the UI layout. Used to describe the size or position of the layout.

Dip (Note that the dip is a standalone pixel unit, DPI is the screen density) equivalent to a 160dpi (mdpi) screen, the runtime system automatically handles scaling based on the density of your actual screen. The conversion formula for pixels and dips is DP =px* (dpi/160). For example, on a 240-density (DPI) screen, a DP equals 1.5 pixels (dp=px*1.5). In the future we should try to use the Dip unit layout instead of pixel units. This will make your app screen more compatible.

Samsung S3 is 2 S4 for 3 Meizu MX3 for 2.5

(not finished)

[Android screen size] various concepts and ways of mutual transformation

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.