Android 屏幕密度适配

Android Icon Size and Location for Apps

 
分辨率
DPI
Density
scale
1dp对应像素
1dp对应物理尺寸
Location
Icon Size
 
120 DPI
LDPI
0.75
 
0.75/160 = 0.75/160 in
drawable-ldpi 36×36
 
160 DPI
MDPI
1.0px/dp
1.0px
1.0/160 = 1/160 in
drawable-mdpi
48×48
 
213 DPI
TvDPI
1.33px/dp
1.33px
1.3/160=1/160 in
  63.84×63.84
 
240 DPI
HDPI
1.5px/dp
1.5px
1.5/240 = 1/160 in
drawable-hdpi
72×72
 
320 DPI
XhDPI
2.0px/dp
2.0px
2.0/320 = 1/160 in
drawable-xhdpi
96×96
 
400 DPI
1.5xhDPI
2.5px/dp
2.5px
2.5/400=1/160 in
  120x120
 
480 DPI
xxhDPI
3.0px/dp
3.0px
3.0/480 = 1/160 in
drawable-xxhdpi
144×144
 
640 DPI
xxxhDPI
4.0px/dp
4.0px
4.0/640 = 1/160 in
drawable-xxxhdpi
192×192
               

 

 

参考文档:Google Screen Sizes and Densities

posted @ 2016-06-30 17:31  狐狸已化妖  阅读(359)  评论(0编辑  收藏  举报