Material Design 日历与 API 11+ 兼容
Prettier and simpler Material Design CalendarView MaterialCalendarView is a prettier and simpler, material design calendar that allows full customization and it's backwards compatible with API 11+.
Gradle
repositories {
maven {
url "https://jitpack.io"
}
}dependencies {
compile 'com.github.BlackBoxVision:material-calendar-view:v1.5.8'
}Maven
jitpack.io
https://jitpack.io
com.github.BlackBoxVision
material-calendar-view
v1.5.8
SBT
resolvers += "jitpack" at "https://jitpack.io"libraryDependencies += "com.github.BlackBoxVision" % "material-calendar-view" % "v1.5.8"In your layout.xml file:
This example shows all the possible customization around Material Calendar View:
Then, in your Activity.java or Fragment.java initialize the calendar:
calendarView = (CalendarView) findViewById(R.id.calendar_view);
calendarView.shouldAnimateOnEnter(true)
.setFirstDayOfWeek(Calendar.MONDAY)
.setOnDateClickListener(this::onDateClick)
.setOnMonthChangeListener(this::onMonthChange)
.setOnDateLongClickListener(this::onDateLongClick)
.setOnMonthTitleClickListener(this::onMonthTitleClick);
if (calendarView.isMultiSelectDayEnabled()) {
calendarView.setOnMultipleDaySelectedListener(this::onMultipleDaySelected);
}
calendarView.update(Calendar.getInstance(Locale.getDefault()));If you found a bug, or you have an answer, or whatever. Please, open an issue. I will do the best to fix it, or help you.
Of course, if you see something that you want to upgrade from this library, or a bug that needs to be solved, PRs are welcome!
Support us with a monthly donation and help us continue our activities. [Become a backer]
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
Distributed under the MIT license. See LICENSE for more information.
暂无开放 Issues,或尚未同步最近议题。