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
<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">
<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">
</Spinner>
<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" />
</LinearLayout>