问题
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