S
S
SavinV2015-06-17 20:13:18
Android
SavinV, 2015-06-17 20:13:18

How to select date programmatically in Android CalendarView?

It is necessary to recolor the color of certain dates from a Java class. But how to do it programmatically?

dateIn = userCursor.getString(userCursor.getColumnIndex("date_in"));
dateOut = userCursor.getString(userCursor.getColumnIndex("date_out"));

            CalendarView calendar = (CalendarView) findViewById(R.id.calendarView);

dateIn and dateOut are strings.
Here's how to recolor dates from dateIn to dateOut in calendar? At least by what method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Krasnodemsky, 2015-06-17
@SavinV

CalendarView from Android SDK doesn't support what you want. Do not use it if customization is required.
Although people get out .
Google third-party calendars, there are plenty of them - Caldroid , Material Calendar View .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question