| Dpi |
Scaling Factor |
| 120 |
0.75 |
| 160 |
1 |
| 240 |
1.5 |
| 320 |
2 |
| 480 |
3 |
DPI: Pixel dots per inch (density)
DIP: device independent pixel point
DP = = Dip is the abbreviation for dip
Google uses 160 density as the universal standard, which means that all vendors will zoom in multiples of 160 for reference when they want to generate higher-resolution phone resolutions.
The final drawing must be PX units, through the DP unit, the system automatically elastic calculation
1DIP=1* Zoom Multiplier
How to fit a layout file
Layout-land will only be created if you need to use a horizontal screen in your project
Layout-xxx*xxx in general, this method can only be used to achieve this kind of resolution of the adaptation, if used in this way, is generally to adapt to a more special resolution (large numbers put in front)
A) for large screen mobile phone adaptation sequence layout_hdpi > layout_mdpi > Layout > layout_ldpi;
b) for the evaluation of mobile phone layout_mdpi > layout> layout_hdpi>lalyout_ldpi
c) Small screen mobile phone layout_ldpi>layout>layout_mdpi>layout_hdpi
You can set the size of the control at different resolutions in Dimens
Layout-land must be in a different situation of the screen layout of the use of
Layout-xxx*xxx is used when adapting to a rare resolution
LAYOUT-SWXXDP more than XX resolution use
8-13 Notes-Android Compatible