Calendar Picker

Calendar Picker

Can preset a selected day. Can customize almost all text size, color, bg color, and month title.

v1.1: If no preset day, hide Selected button. Show it when a day be clicked.
v1.1.2: Remove no needed example code and intent filter which create no needed launch icon.

demo apk


Add it in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    maven { url '' }

Add the dependency:

dependencies {
    compile 'com.github.maxyou:CalendarPicker:v1.1.2'

Only new a dialog:

Builder builder = new Builder(MainActivity.this, new Builder.CalendarPickerOnConfirm() {
            public void onComplete(YearMonthDay yearMonthDay) {
                MyConfig.uiToast("You pick "+yearMonthDay.year+"-"+yearMonthDay.month+"-";



                .setMonthTitle(new Builder.FormatMonthTitle() {
                    public String setMonthTitle(int year, int month) {
                        return ""+year+"年"+month+"月";

                .setWeekIndex(new String[]{"一", "二", "三", "四", "五", "六", "日"})



                .setPreset(new YearMonthDay(2017, 11, 4))



under MIT License.

Learners From Our Courses Work At