Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build an Interactive Story App (Retired) User Input Introducing ImageViews

My drawable folders are prepended with mipmap instead of drawable

Will my files still work correctly even though my drawable folders are called mipmap-hdpi etc.. instead of drawable-hdpi?

9 Answers

Syed Sayem
Syed Sayem
11,327 Points

The mipmap folders are for placing your app icons in only. Any other drawable assets you use should be placed in the relevant drawable folders as before.

More info on this blog: http://android-developers.blogspot.co.uk/2014/10/getting-your-apps-ready-for-nexus-6-and.html

I see, thanks but I don't see the drawable files for my png's to go into. Inside the drawable folder all I get are these mipmap files, how do I get to my drawable files?

Syed Sayem
Syed Sayem
11,327 Points

Enable the Android Project View More info on how to enable project view : https://developer.android.com/sdk/installing/studio-androidview.html

You should see drawable folder, now you would be able to drag-drop any file you want. Android Studio doesn't let you drag-drop file in Android view.

You can also right click on drawable folder and click on Reveal in finder

If I'm in project view like these lessons, or in android view all I see are these mipmap files. In project view if I just created these drawable files alongside the mipmap files would that still work?

Syed Sayem
Syed Sayem
11,327 Points

Yes, it would work fine.

Ok, thanks for all of your help Syed! :)

One last question, when I try to create the new drawable resource file I get an option to change the name and the Root element. Should I keep the root element as "selector"?

Syed Sayem
Syed Sayem
11,327 Points

You can keep it as selector or change it to shape. It's totaly upto you more info here: http://developer.android.com/guide/topics/resources/providing-resources.html

I figured it out thanks! I needed to create a new directory not drawable resource file