Android - Storing images in mipmap vs drawable folder

Viewed 15617

As a general rule, when storing image resources for use in an Android project, should they be placed in the res/drawable or the res/mipmap folder?

Apologies for the simple question, I'm relatively new to Android development. The IDE I'm using is Android Studio 1.0.

4 Answers

Images that don't get affected by changes in scale can be put in the drawable folder.

If you are building different versions of your app for different densities, you should know about the “mipmap” resource directory.  This is exactly like “drawable” resources, except it does not participate in density stripping when creating different apk targets.

Provide at least an xxxhdpi app icon because devices can display large app icons on the launcher.

It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density.

Related