title: How to get alert dialog with four images with selection
body: <p>I want to create dialog button like attached image .
  In this dialog four images will appear for selection .</p>
  
  <p><a href="https://i.stack.imgur.com/9Wqlb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Wqlb.png" alt="enter image description here"></a></p>
  
  <pre><code>String[] image = new String[]{R.mipmap.ic_launcher1, R.mipmap.ic_launcher2,R.mipmap.ic_launcher3, R.mipmap.ic_launcher4};
   AlertDialog.Builder builder = new AlertDialog.Builder(this);
          builder.setTitle("Choose a container size");
          builder.setItems(image, new DialogInterface.OnClickListener() {
              @Override
              public void onClick(DialogInterface dialog, int which) {
                  // the user clicked on colors[which]
              }
          });
          builder.show();
  </code></pre>