1. 2015 is going to be a great year for Android! Why wait??
    Samsung Galaxy Note 5 | Samsung Galaxy S6 | HTC One M9
  2. New Forum Created: Samsung Gear VR!

How do I resize background to fill whole screen?


  1. edojones

    edojones Member

    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

    Advertisement
    :
  2. pietjuhhh1990

    pietjuhhh1990 Well-Known Member

    Set the margin and padding to 0 hard coded and use match_parrent not fill_parent ;)
    edojones likes this.
  3. edojones

    edojones Member

    Thanks pietjuhhh1990 for the quick response - yep that does the trick thanks!
  4. pietjuhhh1990

    pietjuhhh1990 Well-Known Member

    Your welcome ;)
Loading...

Share This Page