Differences between the mipmap and drawable folders [closed]

0

I have seen that in the two folders you can store graphic resources but I would like to know what difference there would be between the two.

    
asked by David Zabala 05.10.2017 в 20:04
source

1 answer

2

mipmap is used when you want to load resources depending on the resolution of the device, such as the icon of the app. If you do not design the image icon based on the resolution, the icon may appear smaller in the account on devices with high resolutions or very large for low resolutions. Of that in the folder mipmap contains folders like:

ldpi (low) ~120dpi
mdpi (medium) ~160dpi
hdpi (high) ~240dpi
xhdpi (extra-high) ~320dpi
xxhdpi (extra-extra-high) ~480dpi
xxxhdpi (extra-extra-extra-high) ~640dpi

So in each folder there should be the same image of the icon only that based on its resolution. So the system will know which resource (icon) to load according to the resolution.

While drawable is for general resources that will not depend on the resolution of the device;

    
answered by 05.10.2017 в 20:09