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 Implementing Designs for Android Customizing a GridView for Friends Adding Images to the GridView

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!

1 Answer

Jurgen de Vries
Jurgen de Vries
14,554 Points

It could be because your app already ran on your emulator and remembers the initial picture. Try 'force stopping' your app in the settings. Then rerun the app on your emulator.

Second option: Is the placeholder image for friends with no picture also set in your code? Maybe it's being overwritten in your code?