Disable custom dates in Android CalendarView - android

I'm trying to disable some custom dates in a CalendarView. The methods setMinDate and setMaxDate are useful to set a range, but I want to disable some random days in the calendar and I cannot find how.

Related

How to set range of Dates in Calendar View in Android

The documentation of Calendar View says
range of dates is configurable
Can anyone help me to understand this line. Also does it mean Calendar View supports date range selection?
Following is the link of article I'm referring to:
https://i.stack.imgur.com/ixil5.png
I want to select a range of dates using calendar view. However i have searched everything but cannot seem to find the solution to select range of date using Calendar View.

How to extend CalendarView to allow selection of multiple dates?

I want to show a user with a calendar where multiple dates are selected.
While this could be easily achieved using Material Calendar View but I prefer not to use dependency for this simple task.
How could I achieve this by extending android CalendarView?
Please help
I would refer you to a comment on How to highlight multiple dates in Android CalendarView.
It basically says CalendarView does not support this, and that the point of CalendarView is to allow the user to choose a date.
Good luck!

Can calendar view of datepicker be manually set in android?

I am developing a perpetual calendar application in android. I need to manually set the position of dates in calendar view of the datepicker upon user's selection of year and month values.
Currently, if I use a datepicker, it shows me with the system's date and months.
How can I customize it for above requirement.
If there is any way of doing it, please suggest, otherwise I am thinking of adding 31 labels for displaying the each date of the month, which I guess is not an appropriate method.
use can set the particular date on Datepicker by using DatePicker.setMonth and
DatePicker.setYear methods.

Android Custom CalendarView Event Color

I am using android CalendarView, I need to highlight some dates on the calendar, couldn't find any methods to do that, is there any tweak availalbe
if i can save some events on native calendar then would the calendarview will highlight those dates ?
Unfortunately there is no way to highlight dates or events in the CalendarView, it's just for selecting dates.
However there are other libraries you can use such as:
android-calendar-view
Caldro

Android CalendarView - How to I have different colors on various dates?

I would like to use the CalendarView calendar to mirrow another central calendar. So all I basicly need is to have/store the data myself and then at least visually markup the Android CalendarView with which dates there are appointments/events.
However, how do I change color for dates where I have appintments/events? (Or how do I tell CalendarView which dates I have appointsments/events, so it highlight those dates)

Categories

Resources