title: Align Relative Layout at bottom of Linear Layout in Parent
body: <p>I have Linear Layout which acts as the parent of a Relative layout.The Relative layout consists of some buttons and stuff.I want to align the relative layout(panel containing buttons) at the bottom of the linear layout.The linear layout only consists of an ImageView and after that the relative layout should be aligned at the bottom. </p>
  
  <p>But when i try to set  <code>android:layout_alignParentBottom="true"</code> in the Relative Layout the IDE Prompts code is wrong.How can i achieve this please help</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="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center_horizontal"
      android:orientation="vertical" &gt;
  
      &lt;ImageView
          android:id="@+id/imageView1"
          android:layout_width="fill_parent"
          android:layout_height="250dp"
          android:scaleType="fitStart"
          android:src="@drawable/jellyfish" /&gt;
  
      &lt;RelativeLayout
  
          android:layout_width="318dp"
          android:layout_height="164dp"
          android:layout_margin="5dp"
          android:background="@drawable/backgrad"
          android:orientation="vertical" &gt;
  
          &lt;Button
              android:id="@+id/button1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_marginBottom="20dp"
              android:layout_marginLeft="34dp"
              android:onClick="clickme"
              android:text="Button" /&gt;
  
          &lt;ImageButton
              android:id="@+id/imageButton1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentTop="true"
              android:layout_marginTop="16dp"
              android:layout_toLeftOf="@+id/button1"
              android:onClick="textclick"
              android:src="@drawable/text" /&gt;
  
          &lt;Button
              android:id="@+id/button2"
              style="?android:attr/buttonStyleSmall"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignBaseline="@+id/button1"
              android:layout_alignBottom="@+id/button1"
              android:layout_centerHorizontal="true"
              android:onClick="wmark"
              android:text="Save" /&gt;
  
  
      &lt;/RelativeLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/mniOg.png" alt="enter image description here"></p>