title: android:layout_alignParentBottom="true" and android:gravity="bottom" seem to have no affect on RelativeLayout
body: <p>I have a viewPager which I'm attempting to set at the bottom of the screen (along with all other items in the last RelativeLayout) however  android:layout_alignParentBottom="true" and android:gravity="bottom" seem to have no affect on RelativeLayout and I'm not sure why. </p>
  
  <h2>XML:</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;LinearLayout
          android:id="@+id/content_frame"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:focusable="true"
          android:orientation="vertical" &gt;
      &lt;/LinearLayout&gt;
  
      &lt;ListView
          android:id="@+id/left_drawer"
          android:layout_width="220dp"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:background="@color/darkgrey"
          android:choiceMode="singleChoice"
          android:divider="@android:color/transparent"
          android:dividerHeight="0dp" /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center_horizontal"
          android:autoLink="web"
          android:textStyle="bold" /&gt;
  
      &lt;ListView
          android:id="@+id/videosListView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
  
      &lt;RelativeLayout
          android:id="@+id/rl"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="#AAFFFFFF" &gt;
      &lt;/RelativeLayout&gt;
  
      &lt;RelativeLayout
          android:id="@+id/footer"
           android:gravity="bottom"
  
          android:layout_width="match_parent"
          android:layout_height="50dip"
          android:layout_alignParentBottom="true" &gt;
  
          &lt;android.support.v4.view.ViewPager
              android:id="@+id/view_pager"
              android:layout_alignParentBottom="true"
               android:layout_weight="1"
              android:layout_width="wrap_content"
              android:layout_height="match_parent" /&gt;
  
          &lt;ImageButton
              android:layout_width="30dip"
              android:layout_height="30dip"
              android:layout_alignParentLeft="true"
              android:layout_centerVertical="true"
              android:layout_marginLeft="15dp"
              android:focusable="false"
              android:src="@drawable/scroll_lt_arrow" /&gt;
  
          &lt;ImageButton
              android:layout_width="30dip"
              android:layout_height="30dip"
              android:layout_alignParentRight="true"
              android:layout_centerVertical="true"
              android:layout_marginRight="15dp"
              android:focusable="false"
              android:src="@drawable/scroll_rt_arrow" /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <h2> Source Snippet:</h2>
  
  <pre><code>  @Override
      public Object instantiateItem(ViewGroup container, int position) {
          Context context = SAXParserAsyncTaskActivity.this;
          ImageView imageView = new ImageView(context);
      //  imageView.setScaleType(ScaleType.FIT_XY);
          imageView.setImageResource(mImages[position]);
          ((ViewPager) container).addView(imageView, 0);
          return imageView;
      }
  </code></pre>
  
  <h2>Screenshot:</h2>
  
  <p><a href="http://i.stack.imgur.com/xyy0c.png" rel="nofollow">http://i.stack.imgur.com/xyy0c.png</a></p>