CosmoCalendar icon indicating copy to clipboard operation
CosmoCalendar copied to clipboard

Very Slow in BottomSheetFragment

Open Fr099y opened this issue 6 years ago • 2 comments

When put this view inside BottomSheetFragment with any ScrollView(NestedScrollView etc), Calendar shows few second later and click actions also delayed. When the click action triggered after few seconds later calendar jumped to another year and shows overlapped views.

Fr099y avatar Mar 16 '18 09:03 Fr099y

me too

hoanghiephui avatar May 07 '18 05:05 hoanghiephui

The bottomshet that I customized myself was such an error. I found the problem and share my solution for you. Maybe help you.

valueAnimator.addUpdateListener { animation ->
           ...
        }
        valueAnimator.addListener(object : AnimatorListenerAdapter() {
            override fun onAnimationEnd(animation: Animator) {
                super.onAnimationEnd(animation)
                ....
                initCalendarView(calendarView)
            }
        })
        valueAnimator.duration = 250
        valueAnimator.start()

I defined to calendarview init initCalendarView method.

You must do the necessary operations when the animation is finished

fevziomurtekin avatar Apr 05 '19 12:04 fevziomurtekin