title: Android alert dialog - image on top
body: <p>Hey I'm trying to put an image above the title in the alert dialog. This is what I'm doing: </p>
  
  <pre><code>ImageView image = new ImageView(this);
  image.setImageResource(R.drawable.img);
  
  alertDialog = new AlertDialog.Builder(new ContextThemeWrapper(this, android.R.style.Theme_DeviceDefault_Light_Dialog))
          .setView(image)
          .setCancelable(false)
          .setTitle(title)
          .setMessage(message)
          .setPositiveButton(btn1, new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int whichButton) {}})
          .setNegativeButton(btn2, new DialogInterface.OnClickListener() {
              public void onClick(DialogInterface dialog, int whichButton) {}})
          .create();
  alertDialog.show();
  </code></pre>
  
  <p>This is the result : 
  <a href="https://i.stack.imgur.com/iVqm7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iVqm7.png" alt="enter image description here"></a></p>
  
  <p>And This is what I'm trying to achieve: 
  <a href="https://i.stack.imgur.com/lV40n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lV40n.png" alt="enter image description here"></a></p>
  
  <p>I've also tried it with setIcon but then the image appears on the left of the title and not above. </p>