A Material design back port of Android's CalendarView
setSelectionMode(SELECTION_MODE_RANGE)
setFirstDayOfWeek
, setMin/MaxDate
, and setCalendarDisplayMode
are moved to a State object.mcv.state().edit()
.setFirstDayOfWeek(Calendar.WEDNESDAY)
.setMinimumDate(CalendarDay.from(2016, 4, 3))
.setMaximumDate(CalendarDay.from(2016, 5, 12))
.setCalendarDisplayMode(CalendarMode.WEEKS)
.commit();
See CUSTOMIZATION_BUILDER for more information.
setPagingEnabled()
CalendarDay
which should be used in place of the now deprecated constructorsclearSelection()
DayFormatter
to format day labels.setCurrentDate(day, false)
adjustViewBounds
works with ImageView,
where the view will try and take up as much space as necessary,
but we base it on tile size instead of an aspect ratio.
The exception being that if a tileSize
is set,
that will override everything and set the view to that size.