Android screen size (from web grooming)

Source: Internet
Author: User

Dip or DP (density-independent pixels)

Length (true length): inches, inch

Pixels per inch dpi (screen density)

Pixels: px


Dip formula: px/dip=dpi/160 (screen pixel/dip = screen density/160), inch = Px/dpi,dip=160*inch

Screen 320*480, the number of pixels in the horizontal direction is 320, the number of pixels in the vertical direction is 480, the resolution is 160 (meaning the number of pixels per inch 160)


So the horizontal direction: 320/160=2 inches

Vertical direction: 480/160=3 inches

The diagonal of the screen is the square root of the 4*9=3.6 (this is often said 3.6-inch screen)

Horizontal dip:160 * 2 inch = 320dip

Vertical dip:160 * 3 inch = 480dip


Different screen corresponding folders

Screen resolution: 1024x600

Density:1 (160)

Folder: values-mdpi-1024x600


Screen resolution: 1024x600

density:1.5 (240)

Folder: values-hdpi-683x400 by 1024/1.5 600/1.5, need to be rounded.


Screen resolution: 800x480

Density:1 (160)

Folder: values-mdpi-800x480


Screen resolution: 800x480

density:1.5 (240)

Folder: values-hdpi-533x320 by 800/1.5 480/1.5, need to be rounded.


ldpi Resources for low-density (ldpi) screens (~120DPI).

MDPI Resources for Medium-density (MDPI) screens (~160DPI). (This is the baseline density.)

hdpi Resources for high-density (hdpi) screens (~240DPI).

xhdpi Resources for extra high-density (xhdpi) screens (~320DPI).


Android screen size (from web grooming)

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.