Is there any way to detect month change in android calendar view(i.e. when user changes calendar to another month)
问题 I want to get month shown in calendar view and i cant figure it out. i tried calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() { @Override public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) { int d = dayOfMonth; int m = month; Log.d("month", "" + m); String curDate = String.valueOf(d); } }); but it only triggers when user click to the days of month. What i want is when user changes the month i want the changed month(i.e. the