material-calendarview icon indicating copy to clipboard operation
material-calendarview copied to clipboard

setMinDate and setMaxDate never works

Open Ankit0080 opened this issue 4 years ago • 0 comments

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

Ankit0080 avatar Jan 04 '21 11:01 Ankit0080