CompactCalendarView icon indicating copy to clipboard operation
CompactCalendarView copied to clipboard

how to disable selected date listener in calender view

Open asimkhanAI opened this issue 7 years ago • 3 comments

i want to disable just selected date listener.help me for that.

asimkhanAI avatar Aug 02 '17 09:08 asimkhanAI

I'm not sure exactly what you mean, but if you don't care when a date is selected, you just leave it blank:

   compactCalendarView.setListener(new CompactCalendarView.CompactCalendarViewListener() {
            @Override
            public void onDayClick(Date dateClicked) { //leave blank because you don't care }

            @Override
            public void onMonthScroll(Date firstDayOfNewMonth) {
                Log.d(TAG, "Month was scrolled to: " + firstDayOfNewMonth);
            }
        });

It's part of the same Inteface, and I don't see any reason to separate it to a different class because they seems related to me.

SundeepK avatar Aug 03 '17 08:08 SundeepK

when i selected date.event for selected date diabled so thats why i want to disabled click for selected date.

asimkhanAI avatar Aug 03 '17 09:08 asimkhanAI

i have the same question, it is when I click on some random date, the View will override the selected color, so I want to disable the selected date event

maskly15 avatar Oct 30 '22 06:10 maskly15