I have implemented code through which a user can add decorators through a button click. But how do I permanently save it.
Here is my decorator class:
class RedMarkDecorator(context: MainActivity?, currentDay: CalendarDay?) : DayViewDecorator {
var myDay = currentDay
var color = RED
override fun shouldDecorate(day: CalendarDay?): Boolean {
return day == myDay
}
override fun decorate(view: DayViewFacade) {
view.addSpan(DotSpan(7f, color))
}
}
I have implemented code through which a user can add decorators through a button click. But how do I permanently save it. Here is my decorator class:
onDateSelected: