Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Mipmap?

Whenever I try to generate a new Android project with AndroidStudio, it keeps hiding the folder "drawables". This has never happened to me before. I've been looking around and I've realized its been generating this folder called "mipmap". I searched around a little bit and I've found this is similar to drawables, but was this some big change in the new AndroidStudio release I missed?? If not how can I get my Drawables folder back? I've tried rebuilding my project, creating new projects and even deleting all my AndroidStudio caches, preferences and logs. P.S. I'm on OSX.

WutAndroid Mipmap?

like image 566
cameronmoreau Avatar asked Feb 10 '15 05:02

cameronmoreau


People also ask

What is mipmap folder in Android?

The mipmap folders are for placing your app/launcher icons (which are shown on the homescreen) in only. Any other drawable assets you use should be placed in the relevant drawable folders as before.

What is mipmap used for?

Android introduced mipmap drawables for providing more flexibility to design the launcher icons. mipmap first introduced in Android Jelly Beans 4.3. If you are building different versions of your app for different densities, you should know about the mipmap resource directory.

Is Android roundIcon required?

According to Google, the only reason to use a roundIcon while having an Adaptive Icon is only if you require a different icon asset for circular masks.


1 Answers

This is a change that is being put into Android Studio 1.1. There is not much documentation about using mipmaps it at the moment but for a run down take a look at the following blog.

https://androidbycode.wordpress.com/2015/02/14/goodbye-launcher-drawables-hello-mipmaps/

If you want to use drawable instead of mipmap folders then you can just recreate the folder structure and access images using @drawable instead of @mipmap in your AndroidManifest.xml.

like image 194
BrentM Avatar answered Oct 06 '22 16:10

BrentM