gsfd
gsfd

Reputation: 1070

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 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!

Upvotes: 0

Views: 498

Answers (1)

inazaruk
inazaruk

Reputation: 74780

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.

Upvotes: 5

Related Questions