Day View Decorator
A decorator which allows customizing the day of month views within a MaterialDatePicker.
Functions
Link copied to clipboard
open fun getBackgroundColor(@NonNull context: Context, year: Int, month: Int, day: Int, valid: Boolean, selected: Boolean): ColorStateList
Override this method to return a custom color to be applied to the background drawable of the day view corresponding to the provided date.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getContentDescription(@NonNull context: Context, year: Int, month: Int, day: Int, valid: Boolean, selected: Boolean, @Nullable originalContentDescription: CharSequence): CharSequence
Override this method to return the day view's content description.
Link copied to clipboard
open fun getTextColor(@NonNull context: Context, year: Int, month: Int, day: Int, valid: Boolean, selected: Boolean): ColorStateList
Override this method to return a custom color to be applied to the text of the day view corresponding to the provided date.
Link copied to clipboard
Optionally override this method to do any initializing for your
DayViewDecorator
instance.