CompactCalendarView
CompactCalendarView copied to clipboard
Need to show the events of months which are swiped back and forth
Hi,
I had used the following lines of code in my source, but when i swiped the calendar back and forth, the event is not getting triggered.
//set title on calendar scroll
compactCalendarView.setListener(new CompactCalendarView.CompactCalendarViewListener() {
@Override
public void onDayClick(Date dateClicked) {
}
@Override
public void onMonthScroll(Date firstDayOfNewMonth) {
}
});
thanks in advance, please help me
Can you give more example code? I see nothing wrong with the above. As long as your printing to logcat, you should see something.
I hope this helps you as I was using this for my project :)
@Override
public void onMonthScroll(Date firstDayOfNewMonth) {
SimpleDateFormat getMonth = new SimpleDateFormat("MMMM");
String mth = getMonth.format(firstDayOfNewMonth);
Log.i("MONTH", mth);
}