title: Android - Change color of DatePicker
body: <p>I'm using this DatePicker. How can I change it's color?</p>
  
  <pre><code>    &lt;DatePicker
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:spinnersShown="true"
          android:datePickerMode="spinner"
          android:calendarViewShown="false"
          android:id="@+id/datePicker"
          style:"@style/datepicker"
      /&gt;
  </code></pre>
  
  <p>This is what it looks like now:
  <a href="https://i.stack.imgur.com/qyp1B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qyp1B.png" alt="enter image description here"></a></p>
  
  <p>I have already tried this:</p>
  
  <pre><code>&lt;style name="datepicker" parent="Theme.AppCompat.Light.Dialog"&gt;
  &lt;item name="colorPrimary"&gt;@color/primary&lt;/item&gt;
  &lt;item name="colorPrimaryDark"&gt;@color/primary_dark&lt;/item&gt;
  &lt;item name="colorAccent"&gt;@color/primary&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>