Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old March 2nd, 2011, 01:37 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jun 2010
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default How do I resize background to fill whole screen?

I have my app displaying a bitmap (.png) on the background with layout_width="fill_parent"
layout_height="fill_parent"
android:background="@drawable/logo"

on a RelativeLayout which displays fine on my HTC Desire. However when I load my app onto my 8 inch Hiapad the bitmap stays the same size and I get a big black border around the left, right and bottom of the screen even when I resize the image. How do I get it to fill the whole screen?

Regards

Ed Jones

edojones is offline  
Reply With Quote
sponsored links
Old March 3rd, 2011, 06:31 AM   #2 (permalink)
Member
 
Join Date: Feb 2011
Location: Netherlands
Posts: 235
 
Device(s): Samsung Galaxy S
Carrier: Not Provided

Thanks: 8
Thanked 22 Times in 21 Posts
Default

Set the margin and padding to 0 hard coded and use match_parrent not fill_parent
pietjuhhh1990 is offline  
Reply With Quote
The Following User Says Thank You to pietjuhhh1990 For This Useful Post:
edojones (March 3rd, 2011)
Old March 3rd, 2011, 12:52 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jun 2010
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default Done!

Thanks pietjuhhh1990 for the quick response - yep that does the trick thanks!
edojones is offline  
Reply With Quote
Old March 4th, 2011, 03:25 AM   #4 (permalink)
Member
 
Join Date: Feb 2011
Location: Netherlands
Posts: 235
 
Device(s): Samsung Galaxy S
Carrier: Not Provided

Thanks: 8
Thanked 22 Times in 21 Posts
Default

Your welcome
pietjuhhh1990 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:42 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.