CosmoCalendar
CosmoCalendar copied to clipboard
Very Slow in BottomSheetFragment
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.
me too
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