Drawable and mipmap directories in Android Studio

I am interested in this question: I have only a folder drawable in Android Studio, there are no folders drawable-hdpi, ...-mdpi, ...-xhdpi, ...-xxhdpi. Do I need to create them? But there is mipmap-hdpi, mipmap-mdpi, mipmap-xhdpi, mipmap-xxhdpi. Where do I need to upload the icons that I want to use in my project? Thanks.

Author: V.March, 2015-02-25

1 answers

Yes, you need to create it. Right-click on the "res" - new - android resource directory.

Graphics with mipmap appeared in android 4.3 Mipmapping for drawables. This flag allows you to get better image quality in some cases, while reducing the size due to more memory consumption.

The latest best practices from Google say that app icons are better kept in mipmap-rather than in drawable-. You can safely follow them, there are no problems with them on older versions of android it will occur.

 12
Author: lsillarionov, 2015-02-25 21:35:12