imageView is not stretching to fit the screen
<p>I have a drawable, which needs to work as the background. It needs to stretch to fill the screen (ignoring the aspect ratio).</p>

<p>I have provided appropriate sizes for ldpi,mdpi,hdpi and xhdpi. 
(I know they are appropriate by the ratio of the corresponding widths and heights, is that enough?)</p>

<p>I have tried to do this as follows:</p>

<p><em><strong>using scaleType:fitXY on the imageView</em></strong></p>

<blockquote>
  <p>This does leaves a white margin around (inside?) the imageView.</p>
</blockquote>

<p><img src="http://i.stack.imgur.com/mFFQU.png" alt="fitXY image"></p>

<p><em><strong>A work around that I'm not satisfied with is using centre for the scaleType like this:</em></strong></p>

<p>I'm not satisfied because the problem still exists on tablet screens.
<img src="http://i.stack.imgur.com/5tkut.png" alt="enter image description here"></p>

<p><em><strong>Note:</em></strong></p>

<ul>
<li>As you might have noticed, I have tried the suggested fixes elsewhere
on SO like setting Adjust View Boundaries to true. They didn't help
here. :(</li>
<li>I would like a non-programmatic answer/fix, as in doing this in XML itself. I wouldn't really want to be writing code to set a background image; Life should be much simpler than that. (:P)</li>
</ul>

<p><em><strong>Update 1:</em></strong></p>

<p>Here's the XML Layout</p>

<pre><code>&lt;merge xmlns:android="http://schemas.android.com/apk/res/android" &gt;

    &lt;!-- &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" --&gt;
    &lt;!-- xmlns:tools="http://schemas.android.com/tools" --&gt;
    &lt;!-- android:id="@+id/FrameLayout1" --&gt;
    &lt;!-- android:layout_width="fill_parent" --&gt;
    &lt;!-- android:layout_height="fill_parent" --&gt;
    &lt;!-- tools:context=".SplashScreen" &gt; --&gt;


    &lt;!--
         This FrameLayout insets its children based on system windows using
         android:fitsSystemWindows
    --&gt;

    &lt;View
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:onClick="onClickTapToContinue"
         &gt;
    &lt;/View&gt;

    &lt;ImageView
        android:id="@+id/bg_gradient"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_gravity="fill"
        android:adjustViewBounds="true"
        android:contentDescription="@string/this_is_the_background_image"
        android:scaleType="center"
        android:src="@drawable/bg_gradient" /&gt;

    &lt;ImageView
        android:id="@+id/bg_artwork"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:adjustViewBounds="true"
        android:contentDescription="@string/artwork_man"
        android:src="@drawable/bg_artwork" /&gt;

    &lt;!-- &lt;/FrameLayout&gt; --&gt;

    &lt;ImageView
        android:id="@+id/branding"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center|top"
        android:adjustViewBounds="true"
        android:contentDescription="@string/branding_text"
        android:maxHeight="95dp"
        android:paddingTop="5dp"
        android:src="@drawable/title_wlcm" /&gt;

    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom|center"
        android:paddingBottom="5dp"
        android:text="@string/tap_continue"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="@android:color/white" /&gt;

&lt;/merge&gt;
</code></pre>
