title: scrollview extending to whole layout
body: <p>I have a layout as below</p>
  
  <pre><code>&lt;LinearLayout&gt;
      &lt;RelativeLayout&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;ScrollView&gt;
        &lt;LinearLayout&gt;
        &lt;LinearLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>this is to divide the screen into half showing graph at one half of the screen and the report at the other half which alone i wish to be scrollable.</p>
  
  <p>UPDATE</p>
  
  <p>Please find the xml as below</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;LinearLayout
  xmlns:android=""
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="#FFFFFF"
  android:orientation="vertical"&gt;
  
  &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="1dp"
          android:background="#888888" /&gt;
  &lt;LinearLayout
      android:id=""
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="10sp"
      android:layout_marginBottom="10sp"
      android:orientation="vertical"&gt;
  
      &lt;TextView
          android:id=""
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="10dp"
          android:textColor=""
          android:textSize="16sp"
          android:textStyle="bold" /&gt;
  
      &lt;TextView
          android:id=""
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="10dp"
          android:textColor=""
          android:textSize="12sp" /&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="1dp"
          android:background="#888888"
          android:orientation="vertical" /&gt;  
  
  &lt;LinearLayout
      android:id=""
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:visibility="visible"
      android:orientation="horizontal"&gt;
  
      &lt;RelativeLayout
          android:paddingTop="10dp"
          android:paddingBottom="10dp"
          android:layout_weight="1"
          android:layout_width="0dp"
          android:layout_gravity="left"
          android:layout_marginLeft="5dp"
          android:layout_height="wrap_content"
          android:background="#FFFFFF"            
          android:orientation="vertical"&gt;
  
          &lt;TextView
              android:id="@+id/course_status"
              android:layout_alignParentLeft="true"
              android:textColor="#000000"
              android:textSize="14sp"
              android:paddingLeft="10dp"
              android:textStyle="bold"
              android:layout_width="fill_parent"
              android:layout_height="50dp"/&gt;
  
          &lt;ImageView
              android:layout_centerInParent="true"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:src=""
              android:id=""
              android:layout_marginTop="50dp" /&gt;
  
          &lt;edu.apollogrp.android.widget.ProgressCircle
              android:id=""
              android:layout_width="170dp"
              android:layout_height="170dp"
              android:indeterminateOnly="false"
              android:layout_centerInParent="true"
              android:progressDrawable=""
              android:layout_marginTop="50dp"
               /&gt;
  
          &lt;ImageView
              android:layout_centerInParent="true"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:src=""
              android:id=""
              android:layout_marginTop="50dp" /&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignRight=""
              android:layout_alignWithParentIfMissing="true"
              android:layout_centerVertical="true"
              android:addStatesFromChildren="false"
              android:clipChildren="false"
              android:clipToPadding="false"
              android:orientation="vertical" &gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:gravity="center"
                  android:orientation="horizontal" &gt;
  
                 &lt;TextView
                  android:id="@
                  android:textColor="@color/grades_green"
                  android:textSize="20sp"
                  android:textStyle="bold"
                  android:gravity="center_horizontal"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
                 &lt;TextView
                  android:id="@
                  android:textColor=""
                  android:textSize="20sp"
                  android:textStyle="bold"
                  android:gravity="center_horizontal"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"&gt;  &lt;/TextView&gt;                  
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:clipChildren="false"
                  android:clipToPadding="false"
                  android:orientation="vertical"
                  android:layout_marginLeft="40dp" &gt;
  
              &lt;TextView
                  android:id="@
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:textColor="@color/grades_green"
                  android:textSize="12sp"
                  android:textStyle="bold" &gt;
              &lt;/TextView&gt;
  
              &lt;TextView
                  android:id="@
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:textColor="#000000"
                  android:textSize="9sp"
                  android:textStyle="bold" &gt;    
              &lt;/TextView&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;LinearLayout
      android:layout_width="1dp"
      android:layout_height="fill_parent"
      android:layout_marginLeft="5dp"
      android:background="#888888"
      android:orientation="horizontal" /&gt;
  
  
      &lt;ScrollView
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_weight="2"
          android:fillViewport="false"
           &gt;
  
          &lt;LinearLayout
              android:id="@
              android:scrollbars="vertical"
              android:layout_width="wrap_content"
              android:orientation="horizontal"     
                         android:layout_height="wrap_content"             
              &gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>but the whole layout is scrollable now :(
  Is there any way i can make only half the screen scrollable?
  PS: android:fillViewport is set to false </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I found out why the scroll is not working. it was because the scroll was inside a pull to refresh list view. :(
  Looking for a work around for that now </p>