title: LinearLayout within Relative Layout XML
body: <p>I've got my LinearLayout part of my app complete. I'm now adding a small bar at the top of the screen/activity using RelativeLayout, but I seem to have it backwards of the way I want it in the picture below.</p>
  
  <p>The tan-colored Linear Layout is visible in a small bar at the top, which is what I want the white RelativeLayout to be and the LinearLayout should be using the white space that RelativeLayout's taking up. I'm confused as how to:</p>
  
  <ul>
  <li><p>change RelativeLayout so that it's height is only as tall as the bar on the top (50dp)</p></li>
  <li><p>have LinearLayout begin 50dp down, so that it's top meets the bottom of the RelativeLayout</p></li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/OZ53k.png" alt="LinearLayout within RelativeLayout"></p>
  
  <p>Original XML file containing only LinearLayout:</p>
  
  <pre><code>    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:orientation="vertical"
          android:background="#F8FBBF" &gt;
  
                  &lt;ExpandableListView
                      android:id="@+id/lvExp"
                      android:layout_height="match_parent"
                      android:layout_width="match_parent"
                      android:cacheColorHint="#00000000"/&gt; 
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Modified XML file where RelativeLayout encompasses the LinearLayout:</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:layout_height="50dp" &gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:orientation="vertical"
          android:background="#F8FBBF" &gt;
  
                  &lt;ExpandableListView
                      android:id="@+id/lvExp"
                      android:layout_height="match_parent"
                      android:layout_width="match_parent"
                      android:cacheColorHint="#00000000"/&gt; 
  
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Thanks for any help offered in advance.</p>