A Material design back port of Android's CalendarView
java.util.Calendar
in favor of java.time.LocalDate
.setLeftArrow
and setRightArrow
app:mcv_selectionMode="single"
with the possible values being none
, single
, multiple
and range
. Default mode is still single.java.util.Date
in preference to java.util.Calendar
, wherever it was used.setOnDateLongClickListener(OnDateLongClickListener)
setDayFormatterContentDescription(DayFormatter)
.The library is now hosted on jitpack. Please refer to the installation section for more information.
maven { url 'https://jitpack.io' }
...
dependencies { implementation 'com.github.prolificinteractive:material-calendarview:1.5.0' }
OnTitleClickListener
for title click eventssetSaveCurrentPosition
builder method to use the current position when switching modesetTitleAnimationOrientation
goToNext
and goToPrevious
API to programmatically trigger pagingsetAllowClickDaysOutsideCurrentMonth
CalendarMode.WEEK
officially marked @Experimental
, use with cautiongetTileSize
is deprecated, use getTileWidth
and getTileHeight
. setTileSize
still works as a convenience method to set width and height at the same time.CalendarPagerAdapter#getItemPosition
is called