Scrollable layout with two listfragments
<p>I have created one scroll view with two list Fragments here is the code:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/blue_shade_top_gainers_and_loosers"
    android:orientation="vertical" &gt;

    &lt;LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:paddingBottom="1dip"
        android:paddingLeft="1dip"
        android:paddingRight="1dip"
        android:paddingTop="2dip" &gt;

        &lt;fragment
            android:id="@+id/header_fragment"
            android:name="com.lk.ignitionit.cse.util.HeaderFragmentActivity"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" /&gt;
    &lt;/LinearLayout&gt;

    &lt;ScrollView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/ScrollView13"
        android:layout_width="fill_parent"
        android:layout_height="match_parent" &gt;

        &lt;RelativeLayout
            android:id="@+id/rl_top"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_marginBottom="1dip"
            android:layout_marginLeft="1dip"
            android:layout_marginRight="1dip"
            android:layout_marginTop="1dip"
             &gt;

            &lt;LinearLayout
                android:id="@+id/headg"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:scrollbars="vertical" &gt;

                &lt;include layout="@layout/top_gainer_header" /&gt;
            &lt;/LinearLayout&gt;

            &lt;fragment
                android:id="@+id/gain"
                android:name="com.lk.ignitionit.cse.application.TopGainersFragmentActivity"
                android:layout_width="match_parent"
                **android:layout_height="wrap_content"**
                android:layout_below="@+id/headg" /&gt;

            &lt;LinearLayout
                android:id="@+id/headl"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@+id/gain" &gt;

                &lt;include layout="@layout/top_loosers_header" /&gt;
            &lt;/LinearLayout&gt;

            &lt;fragment
                android:name="com.lk.ignitionit.cse.application.TopLoosersFragmantActivity"
                android:layout_width="match_parent"
                **android:layout_height="wrap_content"**
                android:layout_below="@+id/headl" /&gt;
        &lt;/RelativeLayout&gt;
    &lt;/ScrollView&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>but the out put is not show the entire list</p>

<p>then i change the fragment layout height into 240dip instead of "wrap_content" now it's enough to show entire list.
but the thing is, those data is dynamic and each list fragment have 10 list items.so i can't predict the the fragment height. if the names are long, this height is not enough.</p>

<p>so i need to set fragment height as wrap_content and scroll able. how can i do this?</p>
