FlexibleCalendar icon indicating copy to clipboard operation
FlexibleCalendar copied to clipboard

How to set start and End date for Calender?

Open chnouman opened this issue 6 years ago • 1 comments

I want to give starting and ending date to calendar view.

chnouman avatar Oct 24 '18 10:10 chnouman

add this code in on page scroll method

i write this code for setting minimum date is current month

int direction = position > lastPosition ? RIGHT : LEFT; if(direction == LEFT) {

            Calendar calendar = Calendar.getInstance();
            if(displayYear == calendar.get(Calendar.YEAR) && displayMonth < calendar.get(Calendar.MONTH)) {
                goToCurrentMonth();
                Log.e("TAG", "onPageScrolled: if: " );
            }else {

                Log.e("TAG", "onPageScrolled: else: " );
            }
        }

riddhee avatar Oct 29 '18 05:10 riddhee