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)