title: android: layout_marginBottom doesn't seem to work properly in 2.2 (Froyo)
body: <p>I have this ImageView block inside a Relative layout:</p>
  
  <pre><code>&lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_marginBottom="50dip"
      android:layout_marginLeft="81dip"
      android:src="@drawable/swipehelp"
      /&gt;
  </code></pre>
  
  <p>This draws the image right where it would be expected in both normal and high density resolution screens on Android 1.6 however on 2.2 it seems to ignore the layout_marginBottom and always draw the image aligned all the way at the bottom. Has anyone seen this before, and if so do you know a fix?</p>
  
  <h2>Edit 1:</h2>
  
  <p>It sits inside a RelativeLayout declared thusly:</p>
  
  <pre><code>&lt;RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/excusescreen"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/woodbg"&gt;
  </code></pre>
  
  <h2>Edit 2:</h2>
  
  <p>Here's the full layout code:</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/excusescreen"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:background="@drawable/woodbg"&gt;
     &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/imlateTopBar"
      android:layout_width="fill_parent"
      android:layout_height="44dip"
      android:background="@drawable/topandbottombars"
      android:layout_alignParentTop="true"    
      &gt;
      &lt;ImageView
              android:id="@+id/excHomeBtn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="5dip"
              android:layout_marginTop="7dip"
              android:src="@drawable/catexcusehomebtn"
              &gt;
      &lt;/ImageView&gt;
      &lt;ImageView
              android:id="@+id/excBackToCatsBtn"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginLeft="10dip"
              android:layout_marginTop="7dip"
              android:src="@drawable/backtocats"
              &gt;
      &lt;/ImageView&gt;
       &lt;/LinearLayout&gt;
       &lt;ViewFlipper
      android:id="@+id/excuses"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="50dip"
       &gt;
       &lt;/ViewFlipper&gt;
       &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/imlateTopBar"
      android:layout_width="fill_parent"
      android:layout_height="44dip"
      android:background="@drawable/topandbottombars"
      android:layout_alignParentBottom="true" 
      &gt;
      &lt;ImageView
          android:id="@+id/emailItBtn"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5dip"
          android:layout_marginTop="7dip"
          android:src="@drawable/emailit"
          &gt;
      &lt;/ImageView&gt;
      &lt;TextView
          android:id="@+id/numExcusesText"
          android:layout_width="100dip"
          android:layout_height="30dip"
          android:layout_marginLeft="5dip"
          android:layout_marginTop="7dip"
          android:textColor="#66ffffff"
          android:gravity="center"
          android:textSize="18dip"
          android:textStyle="bold"
          android:text="1/13"
          &gt;
      &lt;/TextView&gt;
      &lt;ImageView
          android:id="@+id/shareItBtn"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="5dip"
          android:layout_marginTop="7dip"
          android:src="@drawable/shareit"
          &gt;
      &lt;/ImageView&gt;
       &lt;/LinearLayout&gt;
       &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_marginBottom="50dip"
      android:layout_marginLeft="81dip"
      android:src="@drawable/swipehelp"
      /&gt;
  
   &lt;/RelativeLayout&gt;
  </code></pre>
  
  <h2>Edit 3</h2>
  
  <p><img src="https://i.stack.imgur.com/dBsX8.png" alt="alt text"></p>