title: Android DialogFragmant layout not show all layout elements
body: <p>I am trying to call a dialog fragment from an FragmanActivity.
  My dialog fragment include two edittext view and two buttons.</p>
  
  <p>I read the android developer userguide but I can not resolve my problem.
  (<a href="http://developer.android.com/guide/components/fragments.html#Transactions" rel="nofollow noreferrer">Fragments</a>)
  My problem is: the DialogFragment window appears like only a small window.</p>
  
  <p>My Dialog XML:</p>
  
  <pre><code>&lt;LinearLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="400dp"
  android:layout_height="790dp"
  android:orientation="horizontal" &gt;
  
  &lt;EditText
     android:id="@+id/ePostionDate"
     android:inputType="date"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:hint="@string/lblDate"
     android:focusableInTouchMode="false"
     android:paddingLeft="5dip" /&gt;
  
  &lt;EditText
     android:id="@+id/eWaterPosition"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:inputType="numberDecimal"
     android:hint="@string/lblWaterPostion"
     android:paddingLeft="5dip" /&gt;
  
  &lt;TableLayout
      android:layout_width="fill_parent"
      android:layout_height="0dp"
      android:layout_weight="1.0" &gt;
  
      &lt;TableRow&gt;
          &lt;Button
              android:id="@+id/btnAddWaterposition"
              android:layout_width="0dp"
              android:layout_weight=".50"
              android:layout_height="wrap_content"
              android:text="@string/lblBtnFixData"
              android:layout_gravity="left" /&gt;
          &lt;Button
              android:id="@+id/btnCancelWaterposition"
              android:layout_width="0dp"
              android:layout_weight=".50"
              android:layout_height="wrap_content"
              android:text="@string/lblBtnCancel"
              android:layout_gravity="right" /&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>Part of my FragmentActivity where I try to call the DialogFragment:</p>
  
  <pre><code>        DialogFragment wpDialog = new WaterPositionEditActivity(getApplicationContext());
      wpDialog.show(getSupportFragmentManager(), "waterPositionSetter");
  </code></pre>
  
  <p>Finally my DialogFragment class:</p>
  
  <pre><code>enter code here
  </code></pre>
  
  <p>@SuppressLint("ValidFragment")
  public class WaterPositionEditActivity extends DialogFragment {</p>
  
  <pre><code>private Context context;
  
  public WaterPositionEditActivity(Context context) {
      super();
      this.context = context;
  }
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      return inflater.inflate(R.layout.water_position, container, false);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I create my app for Android 2.2 but I want it could run on Android4 or upper.</p>
  
  <p>The very small window look like this:
  <img src="https://i.stack.imgur.com/buQCk.png" alt="part of the screenshot"></p>
  
  <p>As you can see on the img only one edittext field show but there are another editview and two buttons. So this small window should bi bigger than now and show all layout elements!</p>
  
  <p>Anyone can help what is the solution?</p>