Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit background color of a day in calendar view

in my application, I have to show a calendar in which some days are colored differently (eg with a green background) I entered the "calendar view" and I focused on the current date, but can not seem to color certain days from code. Can you give me some advice? (I don't want to use custom library)

CalendarView calendario = (CalendarView) findViewById(R.id.calendarView1);
    Calendar Now = Calendar.getInstance();
    calendario.setDate(Now.getTimeInMillis()); //focus calendar view on today
like image 857
Lele Avatar asked Nov 02 '13 10:11

Lele


People also ask

How do I shade out days in Outlook calendar?

From the Outlook Options tab, click Calendar. Work Time (calendar shading) Outlook shades the non-work hours based on the Calendar work time options. If you do not work on Fridays, you can uncheck the FRI box, if your hours are 9:00 AM to 5:00 PM set the times here.

Can you change the background color on Google Calendar?

Change Calendar ColorLog in to your Google account and navigate to Google Calendar. In the list of calendars on the left side of the screen, hover your cursor over the desired calendar > Click the "Options" icon (3 stacked dots). From the resulting menu, choose the desired color from the color palette.

Can you color code days in Outlook calendar?

From your Calendar folder, select View > View Settings. Select Conditional Formatting. In the Conditional Formatting dialog box, select Add to create a new rule. Give your rule a name and use the Color drop-down to pick a color.


1 Answers

Almost impossible to do, try to use https://github.com/SundeepK/CompactCalendarView, it works great. I switched from CalendarView to CompactCalendarView, and it solved most of my problems.

like image 107
rudicjovan Avatar answered Sep 20 '22 14:09

rudicjovan