Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between drawable and drawable-mdpi

Tags:

android

As I understand it, the default DPI setting for Android is equivalent to MDPI. Is there any reason to have both drawable and drawable-mdpi folders, or would it work the same if I just put them in drawable?

like image 521
Lesleh Avatar asked Jan 05 '12 23:01

Lesleh


1 Answers

The drawable/ folder is the most general folder. Mdpi res devices will use the drawable-mdpi directory first, hdpi devices will look in drawable-hdpi, etc.

http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources

Android will look for the most specific resource it can get before falling back to the drawable/ folder.

like image 85
HoratioCain Avatar answered Oct 31 '22 05:10

HoratioCain