Units in Android 1,px pixels (pixels) VGA 480*640 pixels (Video Graphics Array) QVGA 240*320 pixels (Quarter VGA) HVGA 320*480 pixels (Half-size VGA) WVGA 800*480 pixels (Wide VGA) WQVGA 400*240 pixels (Wide Quarter VGA) XGA 1024*480 pixels (Extended Graphics Array) 2,DP or dip Device independent pixels Description: DP and pixel density ratios are related to: DP * density ratio = px, so there is a common density ratio for the effect of automatically adapting to the screen: the density ratio of 240*320 is: 0.75EG:160DP * 0.75 = 120px320*480 density ratio is: 1.0160DP * 1.0 = 160px480*800 density ratio is: 1.5160DP * 1.5 = 240PX3,SP ratio pixels (scaled pixels-best For text size) Description: Used to handle the size of the font, you can automatically adapt to the font of the user's system "note" in order to adapt to different resolutions, different pixel density, the recommended use of DP, text using SP In addition to the above three display units, there are several less commonly used units: in (inches) inch mm (millimeters) mm pt (points) point, 1/72 Inch
Units in Android