Drawable Folders

心不动则不痛 提交于 2019-12-13 07:48:29

问题


What is the difference between the 3 drawable folders? I know how drawable works but I don't understand why there are 3 folders. Can an image be accessed if it is in only one folder and can it also be accessed if it is in more than one? I know someone probably has a quick and easy answer for me. Thanks!


回答1:


You should read Application Resources and Supporting Multiple Screens sections from documentation. In short, different folders are accessed from different kind of devices.

In short:

  • Devices with large dpi (~240dpi) use resources from "drawable-hdpi" folder.
  • Devices with medium dpi (~160dpi) use resources from "drawable-mdpi".
  • Devices with small dpi (~120 dpi) use resources from "drawable-ldpi" folder.


来源:https://stackoverflow.com/questions/6729388/drawable-folders

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!