title: How to change the colour of Positive and negative button in Custom Alert dialog in android
body: <p><strong>What i am doing:</strong> I am creating a custom alert dialog </p>
  
  <p><strong>What i am trying to do:</strong> along with below code, How to change the color of action buttons in dialog(positive and negative)</p>
  
  <pre><code>@Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
      AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
      // Get the layout inflater
      LayoutInflater inflater = getActivity().getLayoutInflater();
  
      // Inflate and set the layout for the dialog
      // Pass null as the parent view because its going in the dialog layout
      builder.setView(inflater.inflate(R.layout.dialog_signin, null))
      // Add action buttons
             .setPositiveButton(R.string.signin, new DialogInterface.OnClickListener() {
                 @Override
                 public void onClick(DialogInterface dialog, int id) {
                     // sign in the user ...
                 }
             })
             .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
                 public void onClick(DialogInterface dialog, int id) {
                     LoginDialogFragment.this.getDialog().cancel();
                 }
             });      
      return builder.create();
  </code></pre>