title: Android positioning views in RelativeLayout
body: <p>I've got following view hierarchy:</p>
  
  <p><img src="https://i.stack.imgur.com/pGIYL.png" alt="enter image description here"></p>
  
  <p>I want ScrollView with nested RelativeLayout to be between relativeHeader and relativeFooter, <strong>because now it's overlapped by footer</strong>. But when I try to add android:layout_above="@id/relativeFooter" I got error that there is no such view. There's probably something funny in what I'm doing. And all that 'nested relativelayouts' stuff. But how can I acomplish my goal?
  Here's xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"&gt;
    &lt;RelativeLayout
      android:id="@+id/relativeHeader"
      android:layout_width="fill_parent"
      android:layout_height="60dp"
      android:orientation="horizontal"&gt;
      &lt;ImageView
        android:id="@+id/imgMainLogo"
        android:layout_centerVertical="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
      /&gt;
       &lt;Button
        android:id="@+id/btnShort"
        android:text="@string/btnShortRemove_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
      /&gt;
    &lt;/RelativeLayout&gt;
     &lt;ScrollView
      android:id="@+id/scrollContent"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_below="@id/relativeHeader"
      android:paddingBottom="5dp"&gt;
    &lt;RelativeLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      &gt;
      &lt;TextView
         android:id="@+id/tvDetailedTitle"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:textSize="20sp"
      /&gt;
      &lt;TextView
         android:paddingTop="5dp"
         android:id="@+id/tvDetailedPrice"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_below="@id/tvDetailedTitle"
      /&gt;
      &lt;TextView
         android:paddingTop="5dp"
         android:id="@+id/tvDetailedPhoneTitle"
         android:gravity="center_vertical"
         android:layout_width="fill_parent"
         android:layout_height="22dp"
         android:layout_below="@id/tvDetailedPrice"
      /&gt;
      &lt;TextView
         android:paddingLeft="5dp"
         android:paddingTop="5dp"
         android:id="@+id/tvDetailedPhone"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_below="@id/tvDetailedPhoneTitle"
      /&gt;
      &lt;TextView
         android:paddingTop="5dp"
         android:id="@+id/tvDetailedDescriptionTitle"
         android:gravity="center_vertical"
         android:layout_width="fill_parent"
         android:layout_height="22dp"
         android:layout_below="@id/tvDetailedPhone"
      /&gt;
      &lt;TextView
         android:paddingTop="5dp"
         android:paddingLeft="5dp"
         android:layout_below="@id/tvDetailedDescriptionTitle"
         android:id="@+id/tvDetailedDescription"
         android:text="Description"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
       /&gt;
       &lt;Gallery 
         android:id="@+id/gallery"
         android:layout_below="@+id/tvDetailedDescription"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:paddingTop="5dp"
       /&gt;
   &lt;/RelativeLayout&gt;
   &lt;/ScrollView&gt;
     &lt;RelativeLayout
      android:id="@+id/relativeFooter"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"
      android:layout_alignParentBottom="true"
      android:background="#716D69"
      &gt;
      &lt;Button
        android:id="@+id/btnDetailedEmail"
        android:text="@string/btnDetailedEmail_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:width="120dp"
      /&gt;
       &lt;Button
        android:id="@+id/btnDetailedCall"
        android:text="@string/btnDetailedCall_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:width="120dp"
      /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>