title: Layout Weights do not work inside a ScrollView
body: <p>I want to assign layout weights to several items within a <code>LinearLayout</code> inside of a <code>ScrollView</code>. However, the <code>ScrollView</code> ignores the <code>LinearLayout</code> <code>weightSum</code>.</p>
  
  <p>My goal is to divide the layout with weights of 2, 1, 1 (for a total sum of 4), but this does not work properly inside of a <code>ScrollView</code>.</p>
  
  <p>How can I solve this layout problem?</p>
  
  <p><strong>main.xml</strong></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"&gt;
  
      &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 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 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;/ScrollView&gt;
  </code></pre>