CompactCalendarView icon indicating copy to clipboard operation
CompactCalendarView copied to clipboard

Need to show the events of months which are swiped back and forth

Open SirishaBellam opened this issue 7 years ago • 2 comments

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

SirishaBellam avatar Jan 23 '18 10:01 SirishaBellam

Can you give more example code? I see nothing wrong with the above. As long as your printing to logcat, you should see something.

SundeepK avatar Mar 19 '18 22:03 SundeepK

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);
            }

kiiryuuuu avatar May 22 '19 05:05 kiiryuuuu