Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 90,705 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.