title: How to make the linearlayout in scrollview to fill the whole area
body: <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;ScrollView
          android:id="@+id/scrollView1"
          android:background="#000000"
          android:layout_width="match_parent"
          android:layout_height="match_parent" &gt;
  
          &lt;LinearLayout
              android:id="@+id/linear1"
              android:background="#FF0000"
              android:orientation="vertical"
              android:layout_width="match_parent"
              android:layout_height="match_parent" &gt;
  
              &lt;LinearLayout
                  android:background="#00FF00"
                  android:id="@+id/linear2"
                  android:layout_width="match_parent"
                  android:layout_height="200dip"
                  android:orientation="vertical" &gt;
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:background="#0000FF"
                  android:id="@+id/linear3"
                  android:layout_width="match_parent"
                  android:layout_height="100dip"
                  android:orientation="vertical" &gt;
              &lt;/LinearLayout&gt;
  
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This is my layout and I expected to see a red background (because linear1 have background red and have properties to fill the parent) , and two others layout with over the linear1 with green and blue bacgroudns</p>
  
  <p>but what I actually see is black bacground from the scrollview and green and blue from linear2 and linear3 but no red backgrund from linear1</p>
  
  <p>namely the linear is acting like android:layout_height="wrap_content" is set not android:layout_height="match_parent"</p>
  
  <p>any ideas ?</p>