title: Customize alert dialog
body: <p>I have a fragment, that automatically shows a dialog. I want to change the color of the dialog's title and the color of the buttons (when pressed). Is there any way I can do that?</p>
  
  <pre><code>public class MyFragment extends Fragment {
  
      public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
          //...
          AlertDialog ad = new AlertDialog.Builder(getActivity()).setTitle("Title")
                  .setMessage("Message")
                  .setPositiveButton("Yes",
                          new DialogInterface.OnClickListener() {
                      public void onClick(DialogInterface dialog, int whichButton) {
                          //YES logic
  }).setNegativeButton("No", new DialogInterface.OnClickListener() {
              //NO logic}
          }).create();
              ad.show();
              inflater.inflate(R.layout.fragment_my, container);
              return super.onCreateView(inflater, container, savedInstanceState);
      }
  </code></pre>