android有ldpi, mdpi, hdpi, xhdpi这些drawable文件夹,系统是依据什么去选择的?
黄舟
黄舟 2017-04-17 17:33:06
0
3
591

问题1:比如同样1080p的屏幕在4寸和5寸上dpi不一样,android系统是不是根据dpi选择不同的资源的呢,如果有些只放xhdpi,遇到hdpi,mdpi,系统又是怎么操作的?

问题2:如下图的dimens是什么原理?我算了下大部分手机是360dp和320dp,那为什么以w320p为基准?


黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
黄舟

1. As long as you have a copy of xhdpi, when the resolution is smaller than the value of xhdpi, the corresponding image resources will be automatically compressed

PHPzhong

It is recommended to read this article——
http://blog.csdn.net/guolin_b...
There is a very detailed analysis of Drawable

迷茫

The ppi of the screen: the number of diagonal pixels of the screen divided by the diagonal size.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template