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

Chad Johnson
Chad Johnson
10,936 Points

Using custom image for friend with no image

I am attempting to use a different image than the one Ben uses in the videos. I used that image initially, but my color scheme is different so I wanted to use a different one. When changing the image in user_item.xml, it shows up in the preview, but the purple image still shows up when I run the program. Any help would be appreciated!

2 Answers

Tim Hughes
Tim Hughes
12,839 Points

Hey Chad,

Are you implementing a custom adapter if so I would have a look in there to see if you are updating the image view as this may override the image your specify in your layout xml.

Chad Johnson
Chad Johnson
10,936 Points

That was it, completely forgot about the adapter, thanks Tim!