title: How to do title in center in Dialog for Android
body: <p>How to make Today Ad title in Center in this dialog in android.</p>
  
  <p><strong>Code:</strong>        </p>
  
  <pre><code>final Dialog dialog = new Dialog(context);
      dialog.setTitle("Today Ad");
      dialog.setContentView(R.layout.custom);
  Button dialogButton = (Button) dialog.findViewById(R.id.dialogButtonOK);
      // if button is clicked, close the custom dialog
      dialogButton.setOnClickListener(new OnClickListener() {
          @Override
          public void onClick(View v) {
              dialog.dismiss();
          }
      });
  
  
      dialog.show();
  </code></pre>