Change the background color of the calendar on the day

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

CalendarView calendario = (CalendarView) findViewById(R.id.calendarView1); Calendar Now = Calendar.getInstance(); calendario.setDate(Now.getTimeInMillis()); //focus calendar view on today 
+6
source share
1 answer

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

0
source

Source: https://habr.com/ru/post/957240/


All Articles