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 trialDerek Markman
16,291 PointsMy 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
11,327 PointsThe 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
Syed Sayem
11,327 PointsEnable 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
Derek Markman
16,291 PointsIf 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
11,327 PointsYes, it would work fine.
Derek Markman
16,291 PointsOk, thanks for all of your help Syed! :)
Derek Markman
16,291 PointsOne 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
11,327 PointsHere is a example on how you can create android directory folder or file https://github.com/sayems/android/tree/master/Stormy/app/src/main/res
https://github.com/sayems/android/tree/master/Stormy/app/src/main/res/drawable
Syed Sayem
11,327 PointsYou 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
Derek Markman
16,291 PointsI figured it out thanks! I needed to create a new directory not drawable resource file
Derek Markman
16,291 PointsDerek Markman
16,291 PointsI 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?