Because the Android layout is generally used in DP units, and we design the general use of PX units, which involves the unit conversion problem, and in mdpi, the screen density of 160,px and DP is 1:1 relationship, so in order to more convenient conversion, in the design of the time, you can consider to MDPI, The 320x480 is the blueprint for the design.
So when we measure pitch 10px with Photoshop, we can label 10DP in the layout.
Correspondence Relationship:
| Resource Folder |
Android Phone screen resolution |
corresponding icon size |
screen Density |
| XHDPI Ultra-High resolution |
1280*720 |
96*96 |
320 |
| HDPI High resolution |
480*800 |
72*72 |
240 |
| MDPI Medium resolution |
480*320 |
48*48 |
160 |
| LDPI Low resolution |
320*240 |
36*36 |
120 |
Related articles:
Android: Layout Unit conversions
http://blog.csdn.net/welovesunflower/article/details/7930248
Android: Design