Android Android Lists and Adapters Connecting the Data Cleaning Up the Data

Nathan Partridge
Nathan Partridge
Android Development Techdegree Student 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 81,659 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.