title: Android LinearLayout: not displaying correct height
body: <p>I have a LinearLayout with a white background,filled with a bunch of LinearLayouts and RelativeLayouts. I've tried to set the parent layout to have a minimum height, but it still seems to be wrapping to the content.</p>
  
  <p>Here's a picture of what it looks like now. The white space should have a set minimum height that is greater than it is now.
  <img src="https://i.stack.imgur.com/SSrnO.png" alt="enter image description here"></p>
  
  <p>Here's what I think is a relevant section of the xml:</p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/contactViewScrollView"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#ABABAB" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="300dip"
          android:background="#FFFFFF"
          android:orientation="vertical" &gt;
  
          &lt;RelativeLayout
              android:id="@+id/contactHeader"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:background="#EDEDED"
              android:paddingLeft="10dp" &gt;
  
              &lt;TextView
                  android:id="@+id/fullName"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginRight="175dip"
                  android:paddingTop="5dp"
                  android:textSize="18sp" /&gt;
  
              &lt;View
                  android:layout_width="1dp"
                  android:layout_height="90dp"
                  android:layout_toLeftOf="@+id/image"
                  android:background="#000000" /&gt;
  
              &lt;ImageView
                  android:id="@+id/image"
                  android:layout_width="90dp"
                  android:layout_height="90dp"
                  android:layout_alignParentRight="true"
                  android:background="#D6D6D6"
                  android:contentDescription="@string/contact_image_description"
                  android:scaleType="centerCrop" /&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;View
              android:layout_width="fill_parent"
              android:layout_height="1dp"
              android:background="#000000" /&gt;
  
          &lt;LinearLayout
              android:id="@+id/mobile"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:paddingLeft="10dp" &gt;
  
              &lt;TextView
                  android:id="@+id/mobilePhoneHeading"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:paddingTop="15dp"
                  android:text="@string/mobile_phone"
                  android:textColor="#787878" /&gt;
  
              &lt;TextView
                  android:id="@+id/mobilePhone"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:paddingBottom="10dp"
                  android:paddingTop="2dp"
                  android:textSize="18sp" /&gt;
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>... and many other LinearLayouts, all set to 'GONE' programmatically.</p>
  
  <p>Can anyone suggest a fix? I can't figure out why that white section is taking up so little space.</p>