title: ScrollView can host only one direct child - android
body: <p>i want to add ScrollView into my layout as below :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fadingEdge="vertical"
      android:fadeScrollbars="true" 
      android:fadingEdgeLength="1dp"
      android:scrollbars="vertical"&gt;
      &lt;LinearLayout 
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"
      android:background="@color/medium_gray"&gt;
  
     &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:fadingEdge="none"
          android:fadeScrollbars="true" 
          android:fadingEdgeLength="0dp"
          android:scrollbars="none"&gt;
          &lt;LinearLayout
              android:id="@+id/unitlink1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="vertical" &gt;
  
              &lt;TextView
                  android:id="@+id/title1"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="8dp"
                  android:divider="#000000"
                  android:dividerHeight="1dp"
                  android:text="RINGKASAN DANA TRANSAKSI"
                  android:textColor="#FF0000"
                  android:textSize="20sp"
                  android:textStyle="bold" /&gt;
  
              &lt;TableRow
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content" &gt;
  
                  &lt;LinearLayout
  
                      style="@style/size10ptWhite3dpBold"
                      android:layout_width="0dip"
                      android:layout_weight=".40"
                      android:gravity="left"
                      android:orientation="vertical"
                      android:paddingBottom="10dip"
                      android:paddingTop="5dip" &gt;
  
                      &lt;!-- Kolom 1 --&gt;
  
                      &lt;TextView
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:paddingBottom="10dip"
                          android:paddingTop="10dip"
                          android:text="Jenis dana Transaksi"
                          android:textColor="#FFFFFF"
                          android:textSize="17sp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;!-- Kolom 2 --&gt;
  
                  &lt;LinearLayout
  
                      style="@style/size10ptWhite3dpBold"
                      android:layout_width="0dip"
                      android:layout_weight=".30"
                      android:orientation="vertical"
                      android:paddingBottom="10dip"
                      android:paddingTop="5dip" &gt;
  
                      &lt;TextView
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:gravity="right"
                          android:paddingBottom="10dip"
                          android:paddingTop="10dip"
                          android:text="Total Unit"
                          android:textColor="#FFFFFF"
                          android:textSize="14sp" /&gt;
  
                      &lt;TextView
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:gravity="right"
                          android:paddingBottom="10dip"
                          android:text="Harga Unit"
                          android:textColor="#b5b5b5"
                          android:textSize="14sp" /&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;!-- Kolom 3 --&gt;
  
                  &lt;LinearLayout
  
                      style="@style/size10ptWhite3dpBold"
                      android:layout_width="0dip"
                      android:layout_weight=".30"
                      android:orientation="vertical"
                      android:paddingBottom="10dip"
                      android:paddingTop="5dip" &gt;
  
                      &lt;TextView
                          android:id="@+id/jumlah_unit1"
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:gravity="right"
                          android:paddingBottom="10dip"
                          android:paddingTop="10dip"
                          android:text="Nilai POLIS"
                          android:textColor="#FFFFFF"
                          android:textSize="14sp" /&gt;
  
                      &lt;TextView
                          android:id="@+id/harga_unit1"
                          android:layout_width="fill_parent"
                          android:layout_height="wrap_content"
                          android:gravity="right"
                          android:paddingBottom="10dip"
                          android:text="Tanggal NAB"
                          android:textColor="#b5b5b5"
                          android:textSize="14sp" /&gt;
                  &lt;/LinearLayout&gt;
              &lt;/TableRow&gt;
  
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content" &gt;
                  &lt;include layout="@layout/line" /&gt;
              &lt;/LinearLayout&gt;
  
              &lt;ListView
                  android:id="@android:id/list"
                  android:layout_width="fill_parent"
                  android:layout_height="250dp"
                  android:clickable="false"
                  android:divider="#000000"
                  android:dividerHeight="1dp"
                  android:focusable="false" /&gt;
              &lt;/LinearLayout&gt;
              &lt;/ScrollView&gt;
  
  
     &lt;!-- 5 Tabel Dari Unit Link--&gt;   
      &lt;!-- &lt;LinearLayout
          android:id="@+id/unitlink2"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:orientation="vertical"
          android:visibility="visible"&gt; --&gt;
  
     &lt;!-- Excellink Aggressive Fund --&gt;  
           &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:fadingEdge="none"
          android:fadeScrollbars="true" 
          android:fadingEdgeLength="0dp"
          android:scrollbars="none"&gt;
            &lt;LinearLayout
                android:id="@+id/unitlink3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="vertical" 
                android:visibility="visible"&gt;
  
       &lt;TextView 
                  android:id="@+id/title1"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:textSize="20sp"
                  android:textColor="#FF0000"
                  android:text="Excellink Aggressive Fund"
                  android:textStyle="bold"
                  android:divider="#000000"
                   android:dividerHeight="1dp"
                  android:layout_marginTop="8dp"/&gt;
  
     &lt;TableRow
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"&gt;
  
         &lt;LinearLayout
  
              style="@style/size10ptWhite3dpBold"
              android:layout_width="0dip"
              android:layout_weight=".40"
              android:gravity="left"
              android:orientation="vertical" 
              android:paddingTop="5dip"
              android:paddingBottom="10dip"&gt;
  
          &lt;!--Kolom 1--&gt;
          &lt;TextView
              android:text="Transaksi"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#FFFFFF"
              android:textSize="17sp"
              android:paddingTop="10dip"
              android:paddingBottom="10dip" /&gt;
  
      &lt;/LinearLayout&gt;
  
          &lt;!-- Kolom 2 --&gt;
          &lt;LinearLayout
  
                  style="@style/size10ptWhite3dpBold"
                  android:layout_width="0dip"
                  android:layout_weight=".30"
                  android:orientation="vertical"
                  android:paddingTop="5dip"
                  android:paddingBottom="10dip" &gt;
  
          &lt;TextView
              android:text="Jumlah"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#FFFFFF"
              android:textSize="14sp"
              android:paddingTop="10dip"
              android:paddingBottom="10dip"
              android:gravity="right" /&gt;
  
          &lt;TextView
              android:text="Tanggal"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#b5b5b5"
              android:textSize="14sp"
              android:gravity="right"
              android:paddingBottom="10dip"/&gt;
      &lt;/LinearLayout&gt; 
  
          &lt;!-- Kolom 3 --&gt;
      &lt;LinearLayout
  
                  style="@style/size10ptWhite3dpBold"              
                  android:layout_width="0dip"
                  android:layout_weight=".30"
                  android:orientation="vertical"
                  android:paddingTop="5dip"
                  android:paddingBottom="10dip"&gt;
  
          &lt;TextView
              android:id="@+id/jumlah_unit1"
              android:text="Jumlah Unit"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#FFFFFF"
              android:textSize="14sp"
              android:paddingTop="10dip"
              android:paddingBottom="10dip" 
              android:gravity="right"/&gt;
  
          &lt;TextView
              android:id="@+id/harga_unit1"
              android:text="Harga Unit"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textSize="14sp"
              android:textColor="#b5b5b5"
              android:gravity="right"
              android:paddingBottom="10dip"/&gt;
  
      &lt;/LinearLayout&gt;
  
          &lt;/TableRow&gt;
          &lt;LinearLayout 
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"&gt;
                  &lt;include layout="@layout/line"/&gt;
              &lt;/LinearLayout&gt;
  
         &lt;ListView
          android:id="@+id/listview"
          android:layout_width="fill_parent"
          android:layout_height="250dp"
          android:divider="#000000"
          android:dividerHeight="1dp"
          android:focusable="false"
          android:clickable="false"/&gt;
         &lt;/LinearLayout&gt;
         &lt;/ScrollView&gt;
  
    &lt;!-- Excellink Dynamic Fund --&gt;   
     &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:fadingEdge="none"
          android:fadeScrollbars="true" 
          android:fadingEdgeLength="0dp"
          android:scrollbars="none"&gt;  
    &lt;LinearLayout
          android:id="@+id/unitlink4"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="vertical"
           android:visibility="visible"&gt;
  
       &lt;TextView 
                  android:id="@+id/title1"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:textSize="20sp"
                  android:textColor="#FF0000"
                  android:text="Excellink Dynamic Fund"
                  android:textStyle="bold"
                  android:divider="#000000"
                   android:dividerHeight="1dp"
                  android:layout_marginTop="8dp"/&gt;
  
     &lt;TableRow
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"&gt;
  
         &lt;LinearLayout
  
              style="@style/size10ptWhite3dpBold"
              android:layout_width="0dip"
              android:layout_weight=".40"
              android:gravity="left"
              android:orientation="vertical" 
              android:paddingTop="5dip"
              android:paddingBottom="10dip"&gt;
  
          &lt;!--Kolom 1--&gt;
          &lt;TextView
              android:text="Transaksi"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#FFFFFF"
              android:textSize="17sp"
              android:paddingTop="10dip"
              android:paddingBottom="10dip" /&gt;
  
      &lt;/LinearLayout&gt;
  
          &lt;!-- Kolom 2 --&gt;
          &lt;LinearLayout
  
                  style="@style/size10ptWhite3dpBold"
                  android:layout_width="0dip"
                  android:layout_weight=".30"
                  android:orientation="vertical"
                  android:paddingTop="5dip"
                  android:paddingBottom="10dip" &gt;
  
          &lt;TextView
              android:text="Jumlah"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#FFFFFF"
              android:textSize="14sp"
              android:paddingTop="10dip"
              android:paddingBottom="10dip"
              android:gravity="right" /&gt;
  
          &lt;TextView
              android:text="Tanggal"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#b5b5b5"
              android:textSize="14sp"
              android:gravity="right"
              android:paddingBottom="10dip"/&gt;
      &lt;/LinearLayout&gt; 
  
          &lt;!-- Kolom 3 --&gt;
      &lt;LinearLayout
  
                  style="@style/size10ptWhite3dpBold"              
                  android:layout_width="0dip"
                  android:layout_weight=".30"
                  android:orientation="vertical"
                  android:paddingTop="5dip"
                  android:paddingBottom="10dip"&gt;
  
          &lt;TextView
              android:id="@+id/jumlah_unit1"
              android:text="Jumlah Unit"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="#FFFFFF"
              android:textSize="14sp"
              android:paddingTop="10dip"
              android:paddingBottom="10dip" 
              android:gravity="right"/&gt;
  
          &lt;TextView
              android:id="@+id/harga_unit1"
              android:text="Harga Unit"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textSize="14sp"
              android:textColor="#b5b5b5"
              android:gravity="right"
              android:paddingBottom="10dip"/&gt;
  
      &lt;/LinearLayout&gt;
  
          &lt;/TableRow&gt;
          &lt;LinearLayout 
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"&gt;
                  &lt;include layout="@layout/line"/&gt;
              &lt;/LinearLayout&gt;
  
         &lt;ListView
          android:id="@+id/listview1"
          android:layout_width="fill_parent"
          android:layout_height="250dp"
          android:divider="#000000"
          android:dividerHeight="1dp"
          android:focusable="false"
          android:clickable="false"/&gt;
         &lt;/LinearLayout&gt;
         &lt;/ScrollView&gt;
  
  &lt;/LinearLayout&gt;
         &lt;/ScrollView&gt;
  </code></pre>
  
  <p>but when i run it, scrollview just scroll my layout, not my listview. i want the scrollview scroll my layout, and other scrollview, scroll my listview. how to solve it? thanks before</p>