Skip to content

A calendar library used in Shiftize for Android Application written in Kotlin

License

Notifications You must be signed in to change notification settings

shiftize/CalendarView

Repository files navigation

CalendarView

A calendar library used in Shiftize for Android Application

example

Usage

In your Gradle.

compile 'com.shiftize:calendarview:0.1.0'

In your Java codes.

CalendarView calendarView = (CalendarView) findViewById(R.id.calendar_view);

// add dots
List<Agenda> agendaList = new ArrayList<>();
Agenda agenda = new Agenda(2016, 9, 28, Color.parseColor("#E74C3C"));
agendaList.add(agenda);
calendarView.setAgendaList(agandaList);

// hilight the specific cell
int textColor = Color.WHITE;
int circleColor = Color.parseColor("#E74C3C");
calendarView.highlight(2016, 9, 28, textColor, circleColor);

// reset the hilighted cell
calendarView.resetColor(2016, 9, 28);

// move to the specific page
calenendarView.moveTo(2016, 9);

// customize week names
List<String> weekNames = Arrays.asList({
    "S", "M", "T", "W",
    "T", "F", "S"
});
calendarView.setWeekNames(weekNames);

To realize the sample gif, check sample codes.

About

A calendar library used in Shiftize for Android Application written in Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published