title: AlertDialog window size is large
body: <p>I am using simple Alertdialog to show a message that location Coordinates saved successfully. But Alertdialog window is large compared to Alertdialog window. I tried with both android.support.v7.app.AlertDialog and android.app.AlertDialog.</p>
  
  <pre><code> AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);
      alertDialog.setMessage("Location Coordinates saved successfully");
      alertDialog.setPositiveButton("ok", new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int which) {
              dialog.dismiss();
          }
      });
  
      alertDialog.show();
  </code></pre>