title: Android add a ListView inside of ScrollView
body: <p>I know it is a very bad practice that "don't put a ListView into a ScrollView" since  ListView has it's own scroll. However, I have couple of other items (buttons and textviews) additional to ListView. For those, I definitely need  to use a ScrollView. I found some solution (<a href="http://nex-otaku-en.blogspot.com/2010/12/android-put-listview-in-scrollview.html" rel="nofollow">http://nex-otaku-en.blogspot.com/2010/12/android-put-listview-in-scrollview.html</a>) to prevent collapsing the Listview. But, as i said, I need a  ScrollView that encapsulates all items on my XML form. I have added my xml code, Please guide how to achieve this. </p>
  
  <pre><code>   &lt;ScrollView
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="match_parent"
          android:layout_height="match_parent" &gt;  
  &lt;LinearLayout 
  
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;ListView
          android:id="@+id/listView1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:choiceMode="singleChoice"&gt;
      &lt;/ListView&gt;
  
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal" &gt;
       &lt;Button
          android:id="@+id/button1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="Button1" /&gt;
        &lt;/LinearLayout&gt;
  
         &lt;TextView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:text="@string/longtext" /&gt;
  
  &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>