- Basic terminology
- Screen Size: The diagonal length of the actual phone's main screen, such as iphone 4.7 inch;
- Resolution: With the computer monitor resolution, such as 1334x750 pixels;
- Pixel density (DPI pixels per inch): Compresses the resolution to the screen size, such as the 1334/phone length, such as more than 326 pixels per inch, becomes "retina"
- Dip: device independent pixels, is a logical density calculated value, with a screen density of 160 mobile phone as standard;dip/pixels =dpi value /160
- Android screen adaptation
-
DRAWABLE-LDPI (dpi=120, density=0.75)
DRAWABLE-MDPI (dpi=160, Density=1)
- DRAWABLE-TVDPI (dpi=213,density=1.33)
DRAWABLE-HDPI (dpi=240, density=1.5)
DRAWABLE-XHDPI (dpi=320, density=2) //Usually only select this class
DRAWABLE-XXHDPI (dpi=480, density=3)
Provides layout for different screen pixels
Basics (1, screen fit)