DayViewDecorator

abstract class DayViewDecorator : Parcelable

A decorator which allows customizing the day of month views within a MaterialDatePicker.

Constructors

Link copied to clipboard
constructor()

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
open fun getCompoundDrawableBottom(@NonNull context: Context, year: Int, month: Int, day: Int, valid: Boolean, selected: Boolean): Drawable
Override this method to return a bottom compound drawable for the day view corresponding to the provided date.
Link copied to clipboard
open fun getCompoundDrawableLeft(@NonNull context: Context, year: Int, month: Int, day: Int, valid: Boolean, selected: Boolean): Drawable
Override this method to return a left compound drawable for the day view corresponding to the provided date.
Link copied to clipboard
open fun getCompoundDrawableRight(@NonNull context: Context, year: Int, month: Int, day: Int, valid: Boolean, selected: Boolean): Drawable
Override this method to return a right compound drawable for the day view corresponding to the provided date.
Link copied to clipboard
open fun getCompoundDrawableTop(@NonNull context: Context, year: Int, month: Int, day: Int, valid: Boolean, selected: Boolean): Drawable
Override this method to return a top compound drawable for the day view corresponding to the provided date.
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
open fun initialize(@NonNull context: Context)
Optionally override this method to do any initializing for your DayViewDecorator instance.