title: Custom dialog too small
body: <p>I have an android activity that implements a custom dialog.The application is running ok but the dialog is too small,i want to display a bigger dialog.How can i achieve this?
  Here is my layout xml</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="match_parent"
  android:layout_height="match_parent"
  android:background="@color/white"
  android:orientation="vertical" &gt;
  
           &lt;LinearLayout 
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:orientation="vertical"
           android:background="@drawable/view_more_borders"&gt;
  
           &lt;LinearLayout 
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:layout_weight="1"
               android:orientation="horizontal"
               android:layout_marginTop="4dp"
               android:gravity="center_vertical"&gt;
  
               &lt;TextView
                   android:id="@+id/share_amount"
                   android:layout_width="0dp"
                   android:layout_height="wrap_content"
                   android:layout_weight="1"
                   android:text="Company Name:"
                   android:textAppearance="?android:attr/textAppearanceSmall"
                   android:textColor="@color/nice_blue"
                   android:typeface="sans" /&gt;
  
              &lt;TextView
                  android:id="@+id/textViewCompanyName"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="1.80"
                  android:text=" "
                  android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  
           &lt;/LinearLayout&gt;
  
  
           &lt;LinearLayout 
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:layout_weight="1"
               android:layout_marginTop="4dp"
               android:gravity="center_vertical"&gt;
  
               &lt;TextView
                  android:id="@+id/textView5"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:text="Price per share:"
  
                  android:textAppearance="?android:attr/textAppearanceSmall"
                  android:textColor="@color/nice_blue" /&gt;
  
              &lt;TextView
                  android:id="@+id/textViewprice_pershare"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="2"
                  android:layout_alignBaseline="@+id/Yesterday"
                  android:layout_alignBottom="@+id/Yesterday"
                  android:layout_marginLeft="38dp"
                  android:fontFamily="sans-serif"
                  android:layout_toRightOf="@+id/company"
                  android:text=" "
                  android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
           &lt;/LinearLayout&gt;
  
           &lt;LinearLayout 
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:layout_weight="1"
               android:layout_marginTop="4dp"
               android:gravity="center_vertical"&gt;
  
                &lt;TextView
                      android:id="@+id/textView4"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="Total cost:"
  
                    android:textAppearance="?android:attr/textAppearanceSmall"
                    android:textColor="@color/nice_blue" /&gt;
  
              &lt;TextView
                  android:id="@+id/textview_totalcost"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="2"
                  android:layout_alignBaseline="@+id/Yesterday"
                  android:layout_alignBottom="@+id/Yesterday"
                  android:layout_marginLeft="38dp"
                  android:fontFamily="sans-serif"
                  android:layout_toRightOf="@+id/company"
                  android:text=" "
                  android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
           &lt;/LinearLayout&gt;
  
  
           &lt;LinearLayout 
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:layout_weight="1"
               android:layout_marginTop="4dp"
               android:gravity="center_vertical"&gt;
  
                   &lt;TextView
              android:id="@+id/textView3"
                       android:layout_width="0dp"
                       android:layout_height="wrap_content"
                       android:layout_weight="1"
                       android:text="Number of shares:"
  
                       android:textAppearance="?android:attr/textAppearanceSmall"
                       android:textColor="@color/nice_blue" /&gt;
  
              &lt;EditText
                  android:id="@+id/shareNumber"
                  android:layout_width="0dp"
                  android:layout_weight="2"
                  android:layout_height="wrap_content"
                  android:inputType="number"
                  android:fontFamily="sans-serif"
                  android:textSize="12sp"
                   &gt;
  
              &lt;requestFocus /&gt;
              &lt;/EditText&gt;
           &lt;/LinearLayout&gt;
  
           &lt;LinearLayout 
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:layout_weight="1"
               android:layout_marginTop="4dp"
               android:gravity="center_vertical"&gt;
  
  
                &lt;TextView
          android:id="@+id/textView2"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:text="Payment method:"
  
                  android:textAppearance="?android:attr/textAppearanceSmall"
                  android:textColor="@color/nice_blue" /&gt;
  
               &lt;Spinner
                   android:id="@+id/spinner_paymentmode"
                   android:layout_width="0dp"
                   android:layout_height="wrap_content"
                   android:layout_weight="2" /&gt;
  
           &lt;/LinearLayout&gt;   
       &lt;/LinearLayout&gt;
       &lt;Button
      android:id="@+id/button_buy_shares"
      style="@style/ButtonText"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@drawable/blue_button"
      android:text="Buy" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here is my output.I want to increase the width and height of the dialog.
  <img src="https://i.stack.imgur.com/zg6Jc.png" alt="enter image description here"></p>
  
  <p>And my java file</p>
  
  <pre><code>public class MyDialogFragment extends DialogFragment {
  
  public MyDialogFragment() {
  
  }
  
  private EditText mEditText;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.dialogfragment, container);
      // mEditText = (EditText) view.findViewById(R.id.txt_your_name);
      // getDialog().setTitle("Hello");
      getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);
  
      return view;
  }
  }
  </code></pre>