Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing color of single day in calendarview, android

I've got the calendarview in eclipse and now I'm trying to change the appearance of a single day to highlight dates. I didn't find any useful method here, only changes of appearances of whole weekdates or monthdates. So is there a possibility to highlight a single day?

Also i know there are like 3 posts with the same issue, but none of them got answered.

like image 816
Werdli Avatar asked Apr 08 '13 08:04

Werdli


People also ask

Which method is used to get a calendar View in Android?

getDate(): This method is used to get the selected date of CalendarView in milliseconds since January 1, 1970 00:00:00 in user's preferred time zone.


1 Answers

You could extend the native CalenderView to create your own CustomCalendarView and make any desired changes in appearance.

You can find the code for the native CalendarView here.

like image 101
Abhishek Sabbarwal Avatar answered Oct 19 '22 03:10

Abhishek Sabbarwal