vikramkakkar / SublimePicker

A material-styled android view that provisions picking of a date, time & recurrence option, all from a single user-interface.
Apache License 2.0
2.31k stars 407 forks source link

DatePicker : How to change the current day color #52

Open anthony3444 opened 7 years ago

anthony3444 commented 7 years ago

In the date picker view, I would like to have the current day (today) with a specific color. How can I do that? Thank very much guys!

CCorrado commented 7 years ago

Play around with this. It might be the accent color, then set this as the sublimePickerStyle attribute on your activity.

<style name="Some_Custom_Sublime_Style" parent="SublimePickerStyleLight"> <item name="colorAccent">@color/blue</item> <item name="colorPrimaryDark">@color/blue</item> <item name="colorPrimary">@color/blue</item> <item name="android:textColorPrimary">@color/grey</item> <item name="android:textColorSecondary">@color/grey</item> <item name="android:textColorPrimaryInverse">@color/white</item> </style>

anthony3444 commented 7 years ago

I have already this style and it doesn't work:

`