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
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With