title: How to put ListView with some other views into a ScrollView without it collapsing?
body: <p>i have some dynamic list which grow on some inputs i also have tab and some layout above it .and i want to scroll them as well as list grow.
  in simple words just not load full list but scroll other things as i scroll list.
  i m doing something like this .</p>
  
  <pre><code>  &lt;ScrollView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;TabHost
          android:id="@android:id/tabhost"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" &gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical" &gt;
  
              &lt;TabWidget
                  android:id="@android:id/tabs"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_weight="0"
                  android:dividerPadding="5dp"
                  android:orientation="horizontal" /&gt;
  
              &lt;FrameLayout
                  android:id="@android:id/tabcontent"
                  android:layout_width="0dp"
                  android:layout_height="0dp"
                  android:layout_weight="0" /&gt;
  
              &lt;FrameLayout
                  android:id="@+android:id/realtabcontent"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_weight="1" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/TabHost&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>note 
  i also want to scroll tabs .
  i m currently using this code</p>
  
  <pre><code>public static class Utility {
      public static void setListViewHeightBasedOnChildren(ListView listView) {
          ListAdapter listAdapter = listView.getAdapter(); 
          if (listAdapter == null) {
              // pre-condition
              return;
          }
  
          int totalHeight = 0;
          for (int i = 0; i &lt; listAdapter.getCount(); i++) {
              View listItem = listAdapter.getView(i, null, listView);
              listItem.measure(0, 0);
              totalHeight += listItem.getMeasuredHeight();
          }
  
          ViewGroup.LayoutParams params = listView.getLayoutParams();
          params.height = totalHeight + (listView.getDividerHeight() * (listAdapter.getCount() - 1));
          listView.setLayoutParams(params);
      }
  }
  </code></pre>
  
  <p>for make a listview but it when i load the screen it focuse the screen from the list not from the tabs. any one knew how to start focus it from the top
  please help</p>