A calendar library used in Shiftize for Android Application
In your Gradle.
compile 'com.shiftize:calendarview:0.1.0'In your Java codes.
CalendarViewcalendarView = (CalendarView) findViewById(R.id.calendar_view);
// add dotsList<Agenda> agendaList = newArrayList<>();
Agendaagenda = newAgenda(2016, 9, 28, Color.parseColor("#E74C3C"));
agendaList.add(agenda);
calendarView.setAgendaList(agandaList);
// hilight the specific cellinttextColor = Color.WHITE;
intcircleColor = Color.parseColor("#E74C3C");
calendarView.highlight(2016, 9, 28, textColor, circleColor);
// reset the hilighted cellcalendarView.resetColor(2016, 9, 28);
// move to the specific pagecalenendarView.moveTo(2016, 9);
// customize week namesList<String> weekNames = Arrays.asList({
"S", "M", "T", "W",
"T", "F", "S"
});
calendarView.setWeekNames(weekNames);To realize the sample gif, check sample codes.
