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

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!