prolificinteractive / material-calendarview

A Material design back port of Android's CalendarView
https://prolificinteractive.github.io/material-calendarview/
MIT License
5.92k stars 1.32k forks source link

Pass the date to DayViewDecorator.decorate #1109

Open dalewking opened 3 years ago

dalewking commented 3 years ago

As noted in #162 the fact that when DayViewDecorator.decorate is called you do not know the date is very cumbersome. If you have complex decorators you end up having to have a separate decorator for all possible visual combinations which is ridiculous. Passing the date that is being decorated would greatly simplify things.

emm-an-uel commented 1 year ago

I'm having this issue too. I'm trying to decorate certain dates with specific "Event" names and I can't figure out how to do it without DayViewDecorator.decorate knowing the date being decorated. Has there been a solution or a workaround?