CompactCalendarView
CompactCalendarView copied to clipboard
Disable dates lower than current date
I want to disable dates lower than current date any tips?
Hi, do you mean not making them clickable and greyed out? Do you have any more info on what you need.
yeah just like that. and ty
is there any update on this?
@erolasan Unfortunately, not yet. There is a backlog of enhancements and pull request that I am going through at the moment.
@SundeepK I had the same need and implemented a setMinimumDate on the calendar to disable the selection of dates before that minimumDate. The disabled dates are drawn in a different color.
I'll probably add the setMaximumDate to be thorough and I'll submit a Pull Request. I haven't yet prevented scrolling through the month that are not allowed as requested in issue #51 as it looks a lot more complex.
@JulienArzul can you please describe how you achieved that..? I have similar requirement but in reverse way. I need to show daily attendance, so I want to disable and grey-out the days after current day.. @SundeepK any progress on this enhancement.?
Sorry I didn't take the time to provide a Pull-Request...
@sarpotdarsaurabh I won't enter into the full details of the impl but the part of the code that you should look at is in the CompactCalendarController.java file, starting at line 868. That is where the days of the months are drawn. You can change the paint used for drawing on specific days.
did you add it? i need to set a min date . who can help me? please
The minimum/maximum month limit is something I need as well (as in, if the compact calendar reaches the last month in either direction, don't let it scroll to the previous/next one when swiping). For now, I'm programatically returning to the limiting month, but it's a rather ugly work-around.
Any updates?
update??
Any Update ? on how to disable Past dates ? that will be very help full.
Any Update? 🙏🏻🙏🏻🙏🏻
Any Update? 🙏🏻🙏🏻🙏🏻 I have used the other Library then Contribute to it and Add this feature and then use that one :) you can find it in my Repository's.
Dear SundeepK Sir Please give me suggestion about how to set minimum date.
Is there any way to do it?