CosmoCalendar
CosmoCalendar copied to clipboard
How to disable the past dates from current day?
Is there any way to disable past dates ? Can we set range for no of months displayed in the calendar (current month to next year current month)?
long n = System.currentTimeMillis();
for (int i = 1; i <= 10; i++) {
disabledDaysSet.add(n - (86400000 * i));
Log.d("calender", "initViews: " + n);
}
calendarView.setDisabledDays(disabledDaysSet);
// i can disable 10 days prior from current date not more max 30
+1