Android Mipmap?
Asked Answered
P

3

9

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.

Wut Android Mipmap?

Protestant answered 10/2, 2015 at 5:46 Comment(2)
This might help you.Cosy
Unlike forum sites, we don't use "Thanks", or "Any help appreciated", or signatures on Stack Overflow. See "Should 'Hi', 'thanks,' taglines, and salutations be removed from posts?. BTW, it's "Thanks in advance", not "Thanks in advanced".Bouchier
M
7

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.

Miriam answered 14/2, 2015 at 3:22 Comment(0)
C
6

Don't panic, just because Android Studio doesn't generate them automatically it doesn't mean you can't add manually those folders.

On your project tree, right click on the res folder and select "New resource directory" then you can choose drawable and add the properties that you want. (mdpi, hdpi, etc)

Check this for more info

Calumnious answered 10/2, 2015 at 21:41 Comment(0)
I
0
android:icon="@mipmap/ic_launcher"
Interference answered 23/6, 2016 at 17:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.