title: Creating custom AlertDialog Box height and width
body: <p>I'm trying to create custom height and weight with scrollview of custom alertdialog box but it's doesn't work for me. Can anyone explain me how to create custom alertdialog box custom weight and height with scrollview? Is there any wrong code on my xml file?</p>
  
  <p>.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="268dp"
      android:id="@+id/zonevi_clubs"
      android:layout_margin="30dp"&gt;
  
      &lt;ScrollView
          android:layout_width="match_parent"
          android:layout_height="268dp"
          android:fillViewport="true"&gt;
          &lt;ImageView
              android:id="@+id/club1"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_alignParentStart="true"
              android:layout_alignParentTop="true"
              android:layout_marginStart="32dp"
              android:layout_marginTop="25dp"
              android:clickable="true"
              android:src="@mipmap/ic_rtr" /&gt;
          &lt;ImageView
              android:id="@+id/club2"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_alignParentEnd="true"
              android:layout_alignTop="@+id/club1"
              android:layout_marginEnd="32dp"
              android:clickable="true"
              android:src="@mipmap/ic_rtr" /&gt;
  
          &lt;ImageView
              android:id="@+id/club3"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_alignStart="@+id/club1"
              android:layout_below="@+id/club1"
              android:layout_marginTop="21dp"
              android:clickable="true"
              android:src="@mipmap/ic_rtr" /&gt;
          &lt;ImageView
              android:id="@+id/club4"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_alignStart="@+id/club2"
              android:layout_alignTop="@+id/club3"
              android:clickable="true"
              android:src="@mipmap/ic_rtr" /&gt;
  
          &lt;ImageView
              android:id="@+id/club5"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_alignStart="@+id/club1"
              android:layout_below="@+id/club3"
              android:layout_marginTop="21dp"
              android:clickable="true"
              android:src="@mipmap/ic_rtr" /&gt;
          &lt;ImageView
              android:id="@+id/club6"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_alignStart="@+id/club4"
              android:layout_alignTop="@+id/club5"
              android:clickable="true"
              android:src="@mipmap/ic_rtr" /&gt;
  
          &lt;ImageView
              android:id="@+id/club7"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_alignStart="@+id/club5"
              android:layout_below="@+id/club5"
              android:layout_marginTop="27dp"
              android:clickable="true"
              android:src="@mipmap/ic_rtr" /&gt;
          &lt;ImageView
              android:id="@+id/club8"
              android:layout_width="100dp"
              android:layout_height="100dp"
              android:layout_alignStart="@+id/club6"
              android:layout_alignTop="@+id/club7"
              android:clickable="true"
              android:src="@mipmap/ic_rtr" /&gt;
      &lt;/ScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>And my custom alertdialog as follow:</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
                      View view = LayoutInflater.from(MainActivity.this).inflate(R.layout.zonevi_clubs, null);
  
                      builder.setPositiveButton("Thank You", new DialogInterface.OnClickListener() {
                          @Override
                          public void onClick(DialogInterface dialog, int which) {
                              Toast.makeText(MainActivity.this, "It's My Pleasure", Toast.LENGTH_SHORT).show();
                          }
                      });
  
                      builder.setView(view);
                      builder.show();
  </code></pre>