I am trying to start a new activity when you click on a date in CalendarView but my event doesn\'t seem to fire. I have set clickable to true and specified an onclick (both
OnGlobalLayoutListener will do the trick if you want to click already selected date.
calendarView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener(){ @Override public void onGlobalLayout() { //your code here } });