title: How to use ScrollView with one RelativeLayout and two LinearLayout?
body: <p>I have implemented a <code>ScrollView</code> in which i have added a <code>RelativeLayout</code>. In this <code>RelativeLayout</code> a have added two <code>LinearLayout</code>. Each of this contains a <code>TextView</code> and a <code>ListView</code>. Each <code>ListView</code> contains over 25 items. I want to display all the items of both list views and have a single scroll for both. Now, if i add in the first <code>ListView</code> only 3 items and in the second 25, the first one gets no scroll and only the second gets a scroll. If i add in the first <code>ListView</code> 25 items and in the second 3, the first one gets a scroll and the second is not even displayed. How can i do that? Here is my code:</p>
  
  <pre><code>&lt;ScrollView
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fillViewport="true"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:fitsSystemWindows="true"
          tools:context=".MainActivity"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:id="@+id/linearLayout1"&gt;
  
              &lt;TextView
                  android:text="title1"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:id="@+id/productsToBuyTitle" /&gt;
  
              &lt;com.example.alexm.shoppinglist.dlv.DragSortListView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:id="@+id/dragSortList1" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:id="@+id/linearLayout2"
              android:layout_below="@id/linearLayout1"&gt;
  
              &lt;TextView
                  android:text="title2"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:id="@+id/allProductsTitle" /&gt;
  
              &lt;com.example.alexm.shoppinglist.dlv.DragSortListView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:id="@+id/dragSortList2" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>