Is it possible to add a dot below day on Android Material Datepicker?

Viewed 155

Calendar view

I would like to add dots below specific dates, anyone knows if it's possible with the Material Components?

1 Answers

It's a similar problem to the one here - it does not seem to be currently supported by the MaterialDatePicker.

Feature request submitted here, feel free to back it up.

Update

The feature has been implemented and it's now possible to add a dot below days in the Material DatePicker. The material catalog has a very clear example of such an implementation.

You need to extend the DayViewDecorator class and override one of the getCompoundDrawable methods to create the drawable (little circle under each desired date) - in this case it would be getCompoundDrawableBottom.

Related