title: Android: ScrollView is not scrolling
body: <p>I am trying to create a layout with a header, a banner below it, and then a couple of ListView under the banner. I want the the complete screen to be scrollable except the header. Now I know that ListView does not scroll within a ScrollView so I have set the height of the ListView big enough to show all the items. The problem is that, even after these changes, I see that the ListView is scrolling independently and the complete screen is not scrollable.</p>
  
  <p>`</p>
  
  <pre><code>&lt;include
      android:id="@+id/logo_header"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      layout="@layout/screen_header" /&gt;
  
  &lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fillViewport="true"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical"
              android:layout_weight="0.8"
              android:background="#f2f2f2"&gt;
  
              &lt;include
                  android:id="@+id/mcUser"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  layout="@layout/complaint_reporters_details"
                  android:layout_weight="2" /&gt;
  
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:orientation="horizontal"
                  android:weightSum="9"
                  android:layout_weight="2"&gt;
  
                  &lt;LinearLayout
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:orientation="vertical"
                      android:weightSum="1"
                      android:layout_weight="3"
                      android:focusableInTouchMode="false"
                      android:paddingLeft="30dp"
                      android:paddingRight="30dp"&gt;
  
                      &lt;ImageView android:id="@+id/mcShowList"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:gravity="center"
                          android:layout_marginTop="5dp"
                          android:layout_marginBottom="5dp"
                          android:scaleType="fitXY"
                          android:src="@drawable/list_icon"
                          android:layout_weight="0.2" /&gt;
  
                      &lt;TextView android:id="@+id/mcShowList_label"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:gravity="center"
                          android:textStyle="bold"
                          android:textSize="12sp"
                          android:textColor="#929292"
                          android:maxLines="1"
                          android:text="List"
                          android:layout_weight="0.8"
                          android:layout_marginTop="-8dp" /&gt;
  
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:orientation="vertical"
                      android:weightSum="1"
                      android:layout_weight="3"
                      android:gravity="center_vertical|center_horizontal"
                      android:paddingLeft="30dp"
                      android:paddingRight="30dp"&gt;
  
                      &lt;ImageView android:id="@+id/mcShowMap"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:gravity="center"
                          android:layout_marginTop="5dp"
                          android:layout_marginBottom="5dp"
                          android:scaleType="fitXY"
                          android:src="@drawable/map_view"
                          android:layout_weight="0.2"/&gt;
  
                      &lt;TextView android:id="@+id/mcShowMap_label"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:gravity="center"
                          android:textStyle="bold"
                          android:textSize="12sp"
                          android:textColor="#929292"
                          android:maxLines="1"
                          android:text="Map"
                          android:layout_weight="0.8"
                          android:layout_marginTop="-8dp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:orientation="vertical"
                      android:weightSum="1"
                      android:layout_weight="3"
                      android:focusableInTouchMode="false"
                      android:paddingRight="30dp"
                      android:paddingLeft="30dp"&gt;
  
                      &lt;ImageView android:id="@+id/mcShowAnalytics"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:gravity="center"
                          android:layout_marginTop="5dp"
                          android:layout_marginBottom="5dp"
                          android:scaleType="fitXY"
                          android:src="@drawable/analytics_icon"
                          android:layout_weight="0.2" /&gt;
  
                      &lt;TextView android:id="@+id/mcShowAnalytics_label"
                          android:layout_width="fill_parent"
                          android:layout_height="fill_parent"
                          android:gravity="center"
                          android:textStyle="bold"
                          android:textSize="12sp"
                          android:textColor="#929292"
                          android:maxLines="1"
                          android:text="Analytics"
                          android:layout_weight="0.8"
                          android:layout_marginTop="-10dp" /&gt;
  
                  &lt;/LinearLayout&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;RelativeLayout
              android:layout_weight="0.2"
              android:layout_width="fill_parent"
              android:layout_height="400dp"&gt;
  
              &lt;FrameLayout
                  android:id="@+id/mcMapContainer"
                  android:layout_width="match_parent"
                  android:layout_height="fill_parent"/&gt;
  
              &lt;LinearLayout
                  android:id="@+id/mcAnalyticsContainer"
                  android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="fill_parent"&gt;
  
                  &lt;FrameLayout
                      android:id="@+id/mcChartContainer"
                      android:layout_gravity="center"
                      android:layout_width="200dp"
                      android:layout_height="200dp"/&gt;
  
                  &lt;GridView
                      android:id="@+id/mcAmenityList"
                      android:layout_height="0dp"
                      android:layout_weight="7"
                      android:layout_width="match_parent"
                      android:numColumns="3"/&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;LinearLayout
                  android:id="@+id/mcListContainer"
                  android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:weightSum="1"&gt;
  
                  &lt;TextView
                      android:text="Open Complaints"
                      android:textColor="@color/red_btn_bg_color"
                      android:textSize="18dp"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:gravity="center_vertical|center_horizontal"
                      android:padding="5dp" /&gt;
  
                  &lt;ListView
                      android:id="@+id/mcListOpen"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"/&gt;
  
                  &lt;TextView
                      android:text="Closed Complaints"
                      android:textColor="@color/red_btn_bg_color"
                      android:textSize="18dp"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:gravity="center_vertical|center_horizontal"
                      android:padding="5dp" /&gt;
  
                  &lt;ListView
                      android:id="@+id/mcListClosed"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"/&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/RelativeLayout&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>
  `</p>