title: AlertDialog change positive button color
body: <p><a href="https://i.stack.imgur.com/nP4Ev.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/nP4Ev.jpg" alt="enter image description here"></a></p>
  
  <p>I want change colour for positive button in <code>Alertdialog</code>, and here is what i'm doing below:</p>
  
  <p>// <code>style.xml</code></p>
  
  <pre><code>&lt;style name="AlertDialogCustom" parent="Theme.AppCompat.Light.Dialog.Alert"&gt;
      &lt;item name="android:buttonBarPositiveButtonStyle"&gt;@style/positive&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="positive"&gt;
      &lt;item name="android:textColor"&gt;@color/accent&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>I use the style by:</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AlertDialogCustom);
  </code></pre>
  
  <p>But what i'm doing is not working, i just want to change positive button colour. I don't want change the button's colour in java code.</p>
  
  <p>Thanks in advance :-)</p>
  
  <p><strong>Edit-1</strong>
  Alertdialog layout xml</p>
  
  <pre><code>&lt;android.support.v7.internal.widget.ButtonBarLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@+id/buttonPanel"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layoutDirection="locale"
  android:orientation="horizontal"
  android:paddingLeft="12dp"
  android:paddingRight="12dp"
  android:paddingTop="4dp"
  android:paddingBottom="4dp"
  android:gravity="bottom"
  app:allowStacking="@bool/abc_allow_stacked_button_bar"
  style="?attr/buttonBarStyle"&gt;
  
  &lt;Button
      android:id="@android:id/button3"
      style="?attr/buttonBarNeutralButtonStyle"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  
  &lt;android.support.v4.widget.Space
      android:id="@+id/spacer"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:layout_weight="1"
      android:visibility="invisible" /&gt;
  
  &lt;Button
      android:id="@android:id/button2"
      style="?attr/buttonBarNegativeButtonStyle"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  
  &lt;Button
      android:id="@android:id/button1"
      style="?attr/buttonBarPositiveButtonStyle"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  </code></pre>
  
  <p></p>