问题
The default calendarView shows only the days between the minimum and maximum days inclusive if I set a minimum and maximum date. Is there any way to make all the days visible but have them be grayed out or do I have to create/use a separate calendarView in order to get that functionality?
回答1:
At present, this can't be done.
See Android CalendarView for Showing Events and the numerous linked questions for similar problems.
You can either create your own custom CalendarView, or use an external library that provides more functionality. The two popular ones look to be Caldroid and android-calendar-view.
来源:https://stackoverflow.com/questions/19801071/calendarview-out-of-range-dates