I am attempting to reproduce this style with the Material Range Date Picker:
[Calendar date picker with all the selected days in white textColor. The unselected days have a black textColor]
This is what I have been able to achieve so far:
[Calendar date picker with only the selected boundary days in white textColor. The unselected days have a black textColor and the days within the selected boundaries are in black as well]
<style name="MyMaterialCalendarTheme" parent="ThemeOverlay.MaterialComponents.MaterialCalendar">
<item name="colorOnSurface">@color/black</item>
<item name="materialCalendarStyle">@style/MyMaterialCalendarStyle</item>
</style>
<style name="MyMaterialCalendarStyle" parent="Widget.MaterialComponents.MaterialCalendar">
<item name="rangeFillColor">@color/dark_green</item>
<item name="daySelectedStyle">@style/MyDaySelectedStyle</item>
</style>
<style name="MyDaySelectedStyle" parent="Widget.MaterialComponents.MaterialCalendar.Day.Selected">
<item name="itemTextColor">@color/white</item>
</style>
Apparently the colorOnSurface attribute sets the textColor for all days in the calendar and daySelectedStyle attribute sets the textColor only for the pair of final and initial days.
Is there a way to make the textColor of days between the start and end date white while keeping the text color of the unselected days black?


