Android density、dpi、dp、px

DensityDPIExample DeviceScalePixels
ldpi 120 Galaxy Y 0.75x 1dp = 0.75px
mdpi 160 Galaxy Tab 1.0x 1dp = 1px
hdpi 240 Galaxy S II 1.5x 1dp = 1.5px
xhdpi 320 Nexus 4 2.0x 1dp = 2px
xxhdpi 480 Nexus 5 3.0x 1dp = 3px
xxxhdpi 640 Nexus 6 4.0x 1dp = 4px

 

 

https://guides.codepath.com/android/Working-with-the-ImageView

posted @ 2018-07-15 09:24  行走的思想  阅读(181)  评论(0编辑  收藏  举报