L
L
lovesuper2014-09-04 12:07:26
Android
lovesuper, 2014-09-04 12:07:26

[android] How to catch click event on today in CalendarView?

There is a need to show a calendar in the application and, by clicking on any day, a list of events for that day. Natively android can catch the onSelectedDayChange event . Everything would be fine, but the click on the current day is not caught (because the date does not actually change). A simple OnClick does not work as it should either, because it catches the click event for some reason OUTSIDE calendar days (clicking on the name of the month, on some other elements, but not on a specific day).
Is there any solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Copperfield, 2014-09-04
@Copperfield

The default calendar view is best not used in tasks where something more than just a datepick is required.
It is better to use some custom calendar, there are a lot of different libs in Google.
In this case, you will get a full set of functions, and in case of expanding the functionality, you will not be limited by the capabilities of the calendarview from the android sdk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question