title: Android : Align an ImageView to its parent's bottom
body: <p>I have a very simple RelativeLayout :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/frag"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;ListView
          android:id="@+id/listApplications"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" /&gt;
  
      &lt;!-- AD SERVER --&gt;
  
      &lt;ImageView
          android:id="@+id/ad_server_picture"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_marginBottom="0dp"
          android:contentDescription="@string/ad_banner_image_description"
          android:gravity="bottom|center_horizontal"
          android:paddingBottom="0dp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>ImageView is aligned to the bottom of its parent (RelativeLayout) and I set padding/ margin to 0, but I get a white "border" on the top and bottom of the image (see the red mark):</p>
  
  <p><img src="https://i.stack.imgur.com/47AvY.png" alt="enter image description here"></p>
  
  <p>Thank you !</p>