title: Designer Layout doesn't show correctly in Custom Dialog
body: <p>I designed a setting dialog layout here:</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="fill_parent" android:layout_height="fill_parent"
      android:orientation="vertical" android:padding="10dip"
      android:weightSum="1" android:gravity="center"&gt;
      &lt;LinearLayout android:id="@+id/linearLayout1"
          android:layout_width="fill_parent" android:layout_height="wrap_content"
          android:orientation="vertical" android:layout_weight="1"&gt;
  
          &lt;TextView android:text="Sound Options:"
              android:textAppearance="?android:attr/textAppearanceLarge"
              android:layout_width="wrap_content" android:id="@+id/textView1"
              android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
  
          &lt;LinearLayout android:id="@+id/linearLayout2"
              android:layout_width="fill_parent" android:layout_height="wrap_content"
              android:gravity="center_vertical" android:paddingLeft="5dip"&gt;
  
              &lt;TextView android:text="Background Sounds:"
                  android:textAppearance="?android:attr/textAppearanceMedium"
                  android:layout_width="wrap_content" android:id="@+id/textView2"
                  android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
              &lt;ToggleButton android:text="ToggleButton" android:id="@+id/butBackgroundSound"
                  android:layout_height="wrap_content" android:layout_width="wrap_content"&gt;&lt;/ToggleButton&gt;
  
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout android:id="@+id/linearLayout3"
              android:layout_width="fill_parent" android:layout_height="wrap_content"
              android:gravity="center_vertical" android:paddingLeft="5dip"&gt;
  
              &lt;TextView android:text="Effect Sounds:"
                  android:textAppearance="?android:attr/textAppearanceMedium"
                  android:layout_width="wrap_content" android:id="@+id/textView2"
                  android:layout_height="wrap_content"&gt;&lt;/TextView&gt;
              &lt;ToggleButton android:text="ToggleButton" android:id="@+id/butEffectSound"
                  android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/ToggleButton&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is the preview of that layout (and it is correct):</p>
  
  <p><img src="https://i.stack.imgur.com/a53rG.png" alt="enter image description here"></p>
  
  <p>However, when inside Dialog, it is like this:</p>
  
  <p><img src="https://i.stack.imgur.com/Leqhc.png" alt="enter image description here"></p>
  
  <p>I don't know why there's always a blank space at the top, it happens in all my project, then, the dialog is completely ruined in this project. Please help me.</p>