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 trialgregory stocker
3,520 PointsBuild an Interactive Story App - I can`t access the drawables that I have downloaded using src from properties?
I downloaded the mars_drawables files from the teachers notes, then I put them in the drawable section by right clicking on drawable > Show in Explorer (on windows), then copy pasted the files into the drawable folder. When I click the drawable folder under the project tree, it shows that the images in all of the resolutions are all there. However, when trying to access these through imageView > properties > src > Project > Drawable, there is only a picture of a file with a question mark on it, and when I click on it it assigns @drawable/ to the src, which I think is just a reference to nothing being there. How do I get the View to be able to recognize the images? Any answers are much appreciated.
3 Answers
Seth Kroger
56,414 PointsThe way Android organizes the different resolutions the drawable-*dpi/ folders need to be in res/ alongside drawable/, not inside. You'll need to copy the folders over into res/ after they've been extracted from the .zip file. If the folders already exist, you'll need to copy the files into the correct ones.
gregory stocker
3,520 PointsOh wow! Thanks for your help! Didn`t notice that.
Narain Ramjieawan
639 PointsJust last night I had that same problem. :(