prolificinteractive / material-calendarview

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

setMinDate and setMaxDate never works #1086

Open Ankit0080 opened 3 years ago

Ankit0080 commented 3 years ago

setMinDate and setMaxDate

binding.materialCalendarView.state().edit() .setFirstDayOfWeek(Calendar.WEDNESDAY) .setMinimumDate(myCalendar.getTime()) //.setMaximumDate(CalendarDay.from(2021, 5, 30)) .setMaximumDate(myCalendar) .setCalendarDisplayMode(CalendarMode.MONTHS) .commit();

setMinDate and setMaxDate are static, they are not accepting any dynamic values from calendar. I want to add min date of today and max date from today to next 4 months which is not working. Looks like library is designed for static dates