开发者

Drawable Folders

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开发者_如何学Go 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!


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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜