title: Change Dialog Buttons to Clear with ripple effect in styles.xml
body: <p>I have a simple dialog box with two buttons, Positive and Negative that is taking a simple style layout I have defined in the styles.xml. I want the cancel button to have a clear background but still have user feedback when touching it (like a ripple effect of red). I've tried for 2 days now and no luck. Any input would be great. </p>
  
  <p>Working with Ripple Effect:</p>
  
  <p><a href="https://i.stack.imgur.com/mkTPo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mkTPo.png" alt="enter image description here"></a></p>
  
  <p>My code for the next layout which makes the layout have a clear background for cancel but no ripple effect. But I do get a ripple effect for the Yes: </p>
  
  <pre><code> &lt;style name="AlertDialogThemeTesting" parent="Theme.AppCompat.Dialog.Alert"&gt;
      &lt;item name="colorControlHighlight"&gt;@color/Red&lt;/item&gt;
      &lt;item name="colorControlActivated"&gt;@color/Red&lt;/item&gt;
      &lt;item name="colorControlNormal"&gt;@color/Red&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/Black&lt;/item&gt;
      &lt;item name="android:textColorPrimary"&gt;@color/Gray&lt;/item&gt;
      &lt;item name="android:buttonBarNegativeButtonStyle"&gt;@style/NegativeButtonStyle&lt;/item&gt;
      &lt;item name="android:buttonBarPositiveButtonStyle"&gt;@style/PositiveButtonStyle&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="NegativeButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog"&gt;
      &lt;item name="android:textColor"&gt;@color/Black&lt;/item&gt;
      &lt;item name="android:background"&gt;?attr/selectableItemBackgroundBorderless&lt;/item&gt;
      &lt;item name="backgroundTint"&gt;@color/Clear&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="PositiveButtonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog"&gt;
      &lt;item name="android:textColor"&gt;@color/Black&lt;/item&gt;
      &lt;item name="android:background"&gt;?attr/selectableItemBackgroundBorderless&lt;/item&gt;
      &lt;item name="android:backgroundTint"&gt;@color/Gold&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Clear Background but no Ripple Effect:</p>
  
  <p><a href="https://i.stack.imgur.com/hhQd9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hhQd9.png" alt="enter image description here"></a></p>
  
  <p>It seems like adding a Clear/White background removes the ripple effect for some reason. </p>
  
  <p>Code for Dialog: </p>
  
  <pre><code>final AlertDialog.Builder alert = new AlertDialog.Builder(PopOut.this,
          R.style.AlertDialogTheme);
  alert   .setTitle("Delete Profile?")
          .setMessage("Are you sure you want to delete" + profile)
          .setPositiveButton("OK",
                  new DialogInterface.OnClickListener()
                  {
                      public void onClick(DialogInterface dialog,
                                          int whichButton)
                      {
                          finish();
                          dialog.dismiss();
                      }
                  })
          .setNegativeButton("Cancel", null);
  
  final AlertDialog dialog = alert.create();
  dialog.show();
  </code></pre>