1. Several terms
VGA, HVGA, QVGA, WVGA, WQVGA
These terms refer to the resolution of the screen.
Vga:video Graphics Array, that is: Display the drawing matrix, equivalent to 640x480 pixels;
Hvga:half-size VGA, that is: half of the VGA, the resolution is 480x320;
Qvga:quarter VGA, that is: VGA One-fourth, the resolution is the;
wvga:wide Video Graphics Array, i.e.: enlarged VGA with a resolution of 800x480 pixels;
Wqvga:wide Quarter VGA, namely: the enlarged QVGA, the resolution is higher than the QVGA, is lower than the VGA, generally is: 400x240,480x272;
The common resolution types are listed below.
QVGA = 320 * 240; WQVGA = 320 * 480; WQVGA2 = 400 * 240; WQVGA3 = 432 * 240; HVGA = 480 * 320; VGA = 640 * 480; WVGA = 800 * 480; WVGA2 = 768 * 480; FWVGA = 854 * 480; DVGA = 960 * 640; PAL = 576 * 520; NTSC = 486 * 440; SVGA = 800 * 600; WSVGA = 1024 * 576; XGA = 1024 * 768; Xgaplus = 1152 * 864; HD720 = 1280 * 720; WXGA = 1280 * 768; WXGA2 = 1280 * 800; WXGA3 = 1280 * 854; SXGA = 1280 * 1024; WXGA4 = 1366 * 768; Sxgaminus = 1280 * 960; Sxgaplus = 1400 * 1050; Wxgaplus = 1440 * 900; HD900 = 1600 * 900; WSXGA = 1600 * 1024; Wsxgaplus = 1680 * 1050; UXGA = 1600 * 1200; HD1080 = 1920 * 1080; QWXGA = 2048 * 1152; WUXGA = 1920 * 1200; TXGA = 1920 * 1400; QXGA = 2048 * 1536; WQHD = 2560 * 1440; WQXGA = 2560 * 1600; QSXGA = 2560 * 2048; Qsxgaplus = 2800 * 2100; WQSXGA = 3200 * 2048; QUXGA = 3200 * 2400; QFHD = 3840 * 2160; WQUXGA = 3840 * 2400; hd4k = 4096 * 2304; HXGA = 4096 * 3072; WHXGA = 5120 * 3200; HSXGA = 5120 * 4096; WHSXGA = 6400 * 4096; HUXGA = 6400 * 4800; SHV = 7680 * 4320; WhuxgA = 7680 * 4800;
PX: (pixels) (pixels): A point on the screen that represents the actual pixel of the screen, which is related to density. The density is large, the PX on the unit area will be more. For example, the 320*480 screen has 320 pixels in the landscape and 480 pixels in the portrait.
Dip or DP (density-independent pixels). This is related to device hardware, which is recommended in order to support WVGA, HVGA, and QVGA 5 of the binary space. An abstract unit based on screen density. Set some view of the width of the high can use this, in general, at different resolutions, will not have the feeling of zooming.
Conversion formula for PX and dip:
px = (density/160) *dip density is typically 3 common fixed values 240/160/120
Scaleddensity (font scaling). The conversion value of the Unit SP. Typically used in the font size setting
SP magnification pixel – primarily handles the size of the font. The DP is not density-independent, and the SP is not related to scale, except for density.
Conversion formula for SP and PX:
[Java] view plaincopy
-
displaymetrics DM = New Displaymetrics ();
-
Getwindowmanager (). Getdefaultdisplay (). Getmetrics (DM);
-
Pixelsize = (int) scaledpixelsize * dm.scaleddensity;
In: represents inches, which is the physical size of the screen. Equal to 2.54 centimeters per inch. For example, describe the size of a mobile phone screen, often said, 3.2 (English), 3.5 (English), 4 (English) inch refers to this unit. These dimensions are the diagonal length of the screen. If the phone's screen is 3.2 inches, the screen (viewable area) of the phone indicates that the diagonal length is 3.2*2.54 = 8.128 centimeters
PT: Represents a point, which is a physical length of the screen with a size of 1 inches of 1/72.
Density density: Depending on the pixel resolution, the number of pixels that can be displayed in the screen specifying the physical wide-height range, typically one-inch pixels.
2, some parameters
Common phone screen Resolution (I hope you can add)
Xiaomi 3
density=3.0, width=1080, height=1920, scaleddensity=3.0, xdpi=449.704, ydpi=447.412
Xiaomi 2
density=2.0, width=720, height=1280, scaleddensity=2.0, xdpi=345.0566, ydpi=342.23157
Meizu 3
density=2.5, width=1080, height=1800, scaleddensity=2.5, xdpi=415.636, ydpi=415.636
Samsung S3
density=2.0, width=720, height=1280, scaleddensity=2.0, xdpi=304.8, ydpi=306.716
Motorola Me525 Android2.2.2
density=1.5, width=480, height=854, scaleddensity=1.5, xdpi=144.0, ydpi=144.0
Screen size and density comparison table
Screen width height dimension size density
Type (Pixels) (Pixels) Range (inches) Size Group
QVGA 2.6-3.0 Small Low
WQVGA 3.2-3.5 Normal Low
FWQVGA 432 3.5-3.8 Normal Low
HVGA 480 3.0-3.5 Normal Medium
WVGA 480 3.3-4.0 Normal High
FWVGA 480 854 3.5-4.0 Normal High
WVGA 480 4.8-5.5 Large Medium
FWVGA 480 854 5.0-5.8 Large Medium
Android screen density, dip and other related concepts summary