Android Custom CalendarView Event Color - android

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

Related

How to display previews of previous and next month dates in CalendarView?

I'm trying to build a custom datepicker dialog. I used CalendarView instead of DatePicker since I didn't want the header used in DatePicker. This is how it looks now.
And this is what I want to achieve.
The future and previous dates should be visible. If clicked on future month's date, calendar should scroll to next month.
I couldn't find any properties/functions in CalendarView class to achieve this. Is there any other way to achieve this? Is there any 3rd party open-source library that does this?

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!

Disable custom dates in Android CalendarView

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.

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 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