Edit background color of a day in calendar view
Asked Answered
H

1

9

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
Hamel answered 2/11, 2013 at 10:49 Comment(3)
See https://mcmap.net/q/712858/-change-calendarview-stylePawnshop
i don't have to change the color of the selected day, but the color day determined from code, such ass, 4 day in a weekHamel
Hi try to look at this link #16556754Placard
A
1

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.

Angelaangele answered 26/9, 2018 at 13:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.