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 Android Lists and Adapters Connecting the Data Cleaning Up the Data

Nathan Partridge
Nathan Partridge
52,420 Points

Where is app:imageResource documented?

I have been digging for information on the imageResource on the developer.android.com documentation site, and have not found anything that has this attribute. The XML attribute section for ImageView and its parent class View do not list imageResuource, and searching for imageResource, or app:imageResource have come up empty.

Where is this attribute defined? What other attributes are available? Any suggestions on how to locate this information.

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

I agree that's a tricky one. I've been trying to find the information myself and it's frustrating because Google is letting me down too.

Now I'm afraid I don't have much of a direct response for you as I've yet to begin this course and in preparation for the course refresh I started completely over and deleted my notes but the closest thing I could find to what you're looking for is this link on StackOverflow.

https://stackoverflow.com/questions/34668710/android-difference-between-using-imageresource-and-drawable

Which talks about the setImageResource method. Here's the documentation for it. https://developer.android.com/reference/android/widget/ImageView#setImageResource(int)

I'll be intrigued to see how you get passed this issue.