0

Currently the date picker is look like this.

I want to change the color date color ( currently set to black.)

Datepicker theme.

<style name="myDatePickertheme" parent="Theme.AppCompat.Light.Dialog">
            <item name="android:headerBackground">@color/white</item>
            <item name="android:textColorPrimary">@color/primary_text</item>
        </style>

Solution Tried:

        <item name="colorAccent">@color/white</item>

in the custom theme.

Min api=17

App theme

 <style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="android:background">@color/primary_background</item>
        <item name="android:colorPrimaryDark">@color/primary_background</item>
        <item name="android:navigationBarColor">@color/primary_background</item>
        <item name="android:popupBackground">@color/primary_background</item>
        <item name="android:alertDialogTheme">@style/myDialog</item>
        <item name="android:datePickerDialogTheme">@style/myDatePickertheme</item>

    </style>

ANy hint?

Ankur Khandelwal
  • 1,042
  • 3
  • 19
  • 40

1 Answers1

0

would you try to create a custom datePicker then? you may try the solution of this ?

Community
  • 1
  • 1
Tahmid Rahman
  • 748
  • 1
  • 8
  • 20
  • thank for this solution,, I think this will be the last solution if nothing happen. I think to change the font color , simple changes will work. – Ankur Khandelwal Dec 26 '16 at 07:19