Material Calendar View for Android. Improved Material CalendarView from Prolific Interactive.
- Highlighting the current date.
- Disabled ripple.
- Editable size of selectors.
- Dark theme support.
Add the dependency
dependencies {
implementation 'com.github.hachimann:material-calendarview:${version}'
}
Add MaterialCalendarView to your XML like any other view.
<com.github.hachimann.materialcalendarview.MaterialCalendarView
android:id="@+id/calendarView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:mcv_firstDayOfWeek="monday"
app:mcv_circlePadding="2dp"
app:mcv_showOtherDates="out_of_range" />
Make sure to check all the documentation available here.
One of the aims of this library is to be customizable. The many options include:
- Define the view's width and height in terms of tile size
- Single or Multiple date selection, or disabling selection entirely
- Showing dates from other months or those out of range
- Setting the first day of the week
- Show only a range of dates
- Customize the top bar
- Custom labels for the header, weekdays, or individual days
All of this and more can be done via the decorator api. Please check out the decorator documentation.
Material Calendar View is Copyright (c) 2020 Prolific Interactive. It may be redistributed under the terms specified in the LICENSE file.
Material Calendar View is maintained and funded by Prolific Interactive. The names and logos are trademarks of Prolific Interactive.