layout_weight is not work in scrollview
<p>i want to assign weight in linearlayout which is in scrollview but scrollview is ignore the layout weight how to solve this here is my main.xml code 
if i am try to assigning the weight in layout is not work<br>
i am trying to divide my mail layout in 2 1 1 but is not work in scroll view 
if i am removing scrollview 
thanks in andvance</p>

<p>main.xml</p>

<pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
&lt;LinearLayout 
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" 
android:weightSum="4"&gt;

         &lt;LinearLayout android:id="@+id/logo"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical" 
            android:layout_weight="2"
            android:background="#FFFFFF"&gt;


          &lt;/LinearLayout&gt;

            &lt;LinearLayout android:id="@+id/logo1"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical" 
                android:layout_weight="1"
                android:background="#000000"&gt;



         &lt;/LinearLayout&gt;


         &lt;LinearLayout android:id="@+id/logobutton"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal" 
                    android:layout_weight="1" 
                    android:background="#4B4B4B"&gt;

    &lt;/LinearLayout&gt;     
    &lt;/LinearLayout&gt;             

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