android-collapse-calendar-view icon indicating copy to clipboard operation
android-collapse-calendar-view copied to clipboard

How to have calendar without min date and max date ?

Open kevindjf opened this issue 8 years ago • 3 comments

kevindjf avatar Jan 30 '17 10:01 kevindjf

At the moment that is not possible.

blazsolar avatar Jan 30 '17 12:01 blazsolar

Do you have an idea for me to develop it?

kevindjf avatar Jan 30 '17 12:01 kevindjf

I Have Got the Solution...

Open MainActivity

REPLACE BELOW LINE:

CalendarManager manager = new CalendarManager(LocalDate.now(), CalendarManager.State.MONTH, LocalDate.now(), LocalDate.now().plusYears(1));

WITH THIS : final CalendarManager manager = new CalendarManager(LocalDate.now(), CalendarManager.State.MONTH, LocalDate.now().minusYears(1), LocalDate.now().plusYears(1));

look at the 3rd and 4th parameters of CalendarManager, you just need to change that values to LocalDate.now().minusYears(1), LocalDate.now().plusYears(1)
like this thats it..

maheshnikam avatar Apr 13 '17 12:04 maheshnikam