title: android:layout_alignBottom not working for API 18 and below?
body: <p>Need some enlightenment if this is different Android version issue (v18 SDK and before).</p>
  
  <p>Below is the layout we have, in particular the <code>txt_subitem</code> should be align bottom of <code>img_picture</code>. The code below works fine for v19 and later (since Kit-Kat), but not for v18, as shown in picture beneath.</p>
  
  <pre><code>&lt;RelativeLayout
      android:id="@+id/img_container"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"&gt;
  
      &lt;ImageView
          android:id="@+id/img_picture"
          android:layout_width="100dp"
          android:layout_height="80dp"
          android:src="#0f0"
          android:layout_alignParentLeft="true"
          android:layout_centerVertical="true"
          android:layout_margin="20dp"/&gt;
  
      &lt;TextView
          android:id="@+id/txt_subitem"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/img_picture"
          android:text="testing"
          android:layout_alignBottom="@+id/img_picture"
          android:background="#00f"
           /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The below shows what v19 SDK display. E.g. the blue color is aligned with the green box, which is expected due to <code>android:layout_alignBottom="@id/img_picture"</code>
  <a href="https://i.stack.imgur.com/yJUgl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yJUgl.png" alt="v18"></a></p>
  
  <p>However, for v18 SDK and before (tested on v17 and v16 through emulator and real devices), the image is layout where the blue color box is not aligned as expected, but alignment extend to the margin (20dp) of <code>@+id\img_picture</code>. </p>
  
  <p><a href="https://i.stack.imgur.com/bwuiU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bwuiU.png" alt="v19"></a></p>
  
  <p>Could someone shed some light if this is the Android v18 SDK issue or I have missed something. Thanks!</p>