title: Change date-picker text color in spinner mode in android?
body: <p>I have tried using custom style but it is not working , its default color is greyish and I want it to be white colored, can anyone help me out? TIA</p>
  <pre><code>XML
  
  &lt;DatePicker
      android:id=&quot;@+id/user_dob&quot;
      android:hapticFeedbackEnabled=&quot;true&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:calendarViewShown=&quot;false&quot;
      style=&quot;@style/MyDatePickerStyle&quot;
      android:datePickerMode=&quot;spinner&quot;/&gt;
  
  styles   
  &lt;style name=&quot;MyDatePickerStyle&quot; parent=&quot;@android:style/Widget.Material.Light.DatePicker&quot; tools:targetApi=&quot;lollipop&quot;&gt;
      &lt;item name=&quot;android:headerBackground&quot;&gt;@color/white&lt;/item&gt;
      &lt;item name=&quot;android:calendarTextColor&quot;&gt;@color/white&lt;/item&gt;
      &lt;item name=&quot;android:dayOfWeekBackground&quot;&gt;@color/white&lt;/item&gt;
      &lt;item name=&quot;android:yearListSelectorColor&quot;&gt;@color/white&lt;/item&gt;
      &lt;item name=&quot;android:datePickerMode&quot;&gt;calendar&lt;/item&gt;
      &lt;item name=&quot;android:minDate&quot;&gt;01/01/1970&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>