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!
Asked
Active
Viewed 318 times
0
-
Possible duplicate of http://stackoverflow.com/questions/2533410/drawable-folders-in-res-folder or http://stackoverflow.com/questions/3263265/drawable-hdpi-drawable-mdpi-drawable-ldpi-android – Hussain Jul 18 '11 at 06:44
-
I guess this question makes sense to the developers asking and answering it, but I'm totally lost. – jcolebrand Jul 18 '11 at 06:45
1 Answers
5
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.

inazaruk
- 74,247
- 24
- 188
- 156
-
-
1You should, but you can go with one folder named "drawable" that will be used for all devices. This is strongly not recommended. – inazaruk Jul 18 '11 at 06:56