Android Custom Dialog Size : <p>I have a custom dialog, which xml code is below, but when dialog opens the view is very small, how to customize the size of it</p>

<pre><code>&lt;LinearLayout
    android:orientation="vertical"
    android:background="#ffffff"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;
    &lt;Spinner
        android:id="@+id/name_list"
        android:layout_marginTop="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"&gt;
    &lt;/Spinner&gt;
    &lt;Button
        android:id="@+id/name_search"
        android:text="Search"
        android:layout_marginLeft="10dp"
        android:layout_marginTop="10dp"
        android:background="#ffffff"
        android:textStyle="bold"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;
&lt;/LinearLayout&gt;
</code></pre>
