title: android "layout_alignParentBottom" in relative layout
body: <p>So, I have this layout:</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/layout"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:background="#FFFF00"
                  android:minHeight="100dp"
                  android:layout_gravity="bottom"
          &gt;
      &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:textColor="#000000"
              android:background="#FF0000"
              android:text="Hello World"
              /&gt;
  
      &lt;Button
              android:layout_height="wrap_content"
              android:layout_width="wrap_content"
              android:layout_alignParentRight="true"
              android:text="button"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and this is how it looks:</p>
  
  <p><img src="https://i.stack.imgur.com/9PtnD.png" alt="enter image description here"></p>
  
  <p>but if I add <code>android:layout_alignParentBottom="true"</code> to the button here is how it looks:</p>
  
  <p><img src="https://i.stack.imgur.com/f2r4k.png" alt="enter image description here"></p>
  
  <ol>
  <li>Can someone please explain me this behavior?</li>
  <li>How to put my button at the bottom without resizing the yellow layout and without adding thousand of layouts for workarounds?</li>
  </ol>