绘制和绘制,MDPI的区别 [英] Difference between drawable and drawable-mdpi
问题描述
据我所知,默认的DPI设置为Android相当于MDPI。是否有任何理由,无论绘制和绘制,MDPI文件夹,或者如果我只是把他们在绘制将它的工作原理相同?
As I understand it, the default DPI setting for Android is equivalent to MDPI. Is there any reason to have both drawable and drawable-mdpi folders, or would it work the same if I just put them in drawable?
推荐答案
在绘制/文件夹是最常用的文件夹。 MDPI资源设备将首先使用绘制-MDPI目录,华电国际设备将看在绘制,华电国际等。
The drawable/ folder is the most general folder. Mdpi res devices will use the drawable-mdpi directory first, hdpi devices will look in drawable-hdpi, etc.
<一个href="http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources" rel="nofollow">http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources
Android将寻找最具体的资源就可以回落到绘制/文件夹之前得到的。
Android will look for the most specific resource it can get before falling back to the drawable/ folder.
这篇关于绘制和绘制,MDPI的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!