title: How to change background color of android default alert dialog
body: <p>I have a default alert dialog with listview of Text &amp; Radio buttons.</p>
  
  <p>I need to replace the image instead of text (Replace images instead of Facebook credit,paypal,Credit card shown below) &amp; also needs to change alert dialog's background color.</p>
  
  <p>I put style.xml file inside values folder also.</p>
  
  <p>How could I implement that file in below code for changing background color?</p>
  
  <p>My code:</p>
  
  <pre><code> final CharSequence[] items = {"Facebook credit", "Paypal", "Credit Card"};
  
              //ContextThemeWrapper ctw = new ContextThemeWrapper( this, R.style.AboutDialog );
              AlertDialog.Builder builder = new AlertDialog.Builder(paymentPage.this);
              builder.setTitle("Payment Gateway");
              builder.setIcon(R.drawable.gate);
              builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {
                  public void onClick(DialogInterface dialog, int item) {
                     // Toast.makeText(getApplicationContext(), items[item], Toast.LENGTH_SHORT).show();
                  }
              });
  
              builder.setPositiveButton("Yes",
                      new DialogInterface.OnClickListener() {
                          public void onClick(DialogInterface dialog, int id) {
                              payPalPayment();
                          }
  
  
                      });
              builder.setNegativeButton("No",
                      new DialogInterface.OnClickListener() {
                          public void onClick(DialogInterface dialog, int id) {
                              Toast.makeText(paymentPage.this, "Fail", Toast.LENGTH_SHORT).show();
                          }
                      });
              AlertDialog alert = builder.create();
              alert.show();
          }
      });
  </code></pre>
  
  <p>My image:</p>
  
  <p><img src="https://i.stack.imgur.com/txZ5u.png" alt="enter image description here"></p>