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

How do I get this picture to extend to all corners of the screen?

How do I get a picture to extend to all corners of the screen, instead of leaving the outside pure white.

Can you post the code from your xml file?

the manifest?

From your layout file. I'm assuming you have an ImageView or something to display your picture?

Yes I do

Ok, so can you post the code from that layout file?

1 Answer

If your using the default layout file that was generated for you then you would just need to remove the padding from the layout. There are xml attributes there inside the RelativeLayout element that gives that space around the edge by default for padding, just delete those.. If I am understanding what you are trying to do correctly

Thanks