title: Ordering elements in a layout file
body: <p>I have been trying to layout my elements such that the button occupies the bottom of the screen and the remaining elements arranged in a successive manner at the top of the screen but with no success. The last EditExt(opedt) is always showed a bit distant from the others somewhere in the middle of the screen. What changes to have them in the desired order?
  Here is my XML layout file:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
      android:background="@drawable/beezlinkbackg"
      android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:paddingBottom="@dimen/activity_vertical_margin"
      tools:context="gsie.beezlink.OpportunityActivity"&gt;
  
      &lt;RelativeLayout
          android:id="@+id/footer"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:gravity="center" &gt;
          &lt;Button
              android:layout_width= "match_parent"
              android:layout_height="wrap_content"
              android:text="@string/posterbtn"
              android:background="#008000"
              android:id="@+id/posterbtn"
               /&gt;
  
      &lt;/RelativeLayout&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/cinteretxt"
          android:textSize="20sp"
          android:textStyle="bold"
          android:id="@+id/cinteretxt"
          android:layout_alignParentTop="true"
        /&gt;
  
      &lt;Spinner
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/cinteretspin"
          android:layout_below="@+id/cinteretxt"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/optitretxt"
          android:textSize="20sp"
          android:textStyle="bold"
          android:id="@+id/optitretxt"
          android:layout_below="@+id/cinteretspin"
          /&gt;
      &lt;EditText
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/optitreedt"
          android:layout_below="@+id/optitretxt"
          android:hint="@string/hintoptitre"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/optxt"
          android:textSize="20sp"
          android:textStyle="bold"
          android:id="@+id/optxt"
          android:layout_below="@+id/optitreedt"
          /&gt;
      &lt;EditText
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/opedt"
          android:hint="@string/hintpost"
          android:layout_below="@+id/optxt"
          android:layout_above="@+id/footer"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Edit: It looks like i have awarded the points without good testing. When i type long text in the last EditText(opedt),it overlaps the button at the bottom. The text gets on top of the button. I want the text to stop just before reaching the button and scrolls.</p>