title: Android How to put a RelativeLayout aligned to bottom?
body: <p><img src="https://i.stack.imgur.com/xSwIT.png" alt="enter image description here"></p>
  
  <p>I can show you in the prnt screen above the layout i actually have with my xml and the layout i pretend to have. I have made a few changes in the Relative Layout settings but cant solve it.</p>
  
  <p>Here is the code:</p>
  
  <p><strong>@layout/gridview.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/BackGroundColor"
      android:orientation="vertical"
      android:scaleType="center" &gt;
  
      &lt;View
          android:layout_width="match_parent"
          android:layout_height="2dp"
          android:layout_marginBottom="0dp"
          android:layout_marginLeft="0dip"
          android:layout_marginRight="0dip"
          android:background="@color/BlueOcean" /&gt;
  
      &lt;GridView
          android:id="@+id/grid"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:layout_margin="4dp"
          android:columnWidth="100dp"
          android:horizontalSpacing="5dip"
          android:listSelector="@layout/gridview_selector"
          android:numColumns="3"
          android:padding="1dp"
          android:scaleType="fitCenter"
          android:stretchMode="columnWidth"
          android:verticalSpacing="4dp" /&gt;
  
      &lt;RelativeLayout
          android:id="@+id/overviewBottomBar"
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:layout_gravity="bottom"  
          android:gravity="top"    
          android:background="@layout/overviewbottombar_selector"
          android:textSize="14sp"&gt;
  
          &lt;TextView
              android:id="@+id/overviewScreenLeft"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_alignParentTop="true"
              android:layout_marginLeft="39dp"
              android:text="Left"
              android:textColor="@color/holo_blue_dark" /&gt;
  
          &lt;View
              android:id="@+id/overviewBottomBarDividerLeft"
              android:layout_width="1dp"
              android:layout_height="32dp"
              android:layout_centerVertical="true"
              android:layout_marginLeft="39dp"
              android:layout_toRightOf="@+id/overviewScreenLeft"
              android:background="@color/darker_gray" /&gt;
  
          &lt;TextView
              android:id="@+id/overviewScreenCenter"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignBaseline="@+id/overviewScreenLeft"
              android:layout_alignBottom="@+id/overviewScreenLeft"
              android:layout_centerHorizontal="true"
              android:text="Center"
              android:textColor="@color/holo_blue_dark" /&gt;
  
          &lt;View
              android:id="@+id/overviewBottomBarDividerRight"
              android:layout_width="1dp"
              android:layout_height="32dp"
              android:layout_centerVertical="true"
              android:layout_marginLeft="38dp"
              android:layout_toRightOf="@+id/overviewScreenCenter"
              android:background="@color/darker_gray" /&gt;
  
          &lt;TextView
              android:id="@+id/overviewScreenRight"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignBaseline="@+id/overviewScreenCenter"
              android:layout_alignBottom="@+id/overviewScreenCenter"
              android:layout_alignParentRight="true"
              android:layout_marginRight="39dp"
              android:text="Right"
              android:textColor="@color/holo_blue_dark" /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Whats wrong with it?</p>
  
  <p>Thanks</p>