Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very Slow in BottomSheetFragment #47

Open
Fr099y opened this issue Mar 16, 2018 · 2 comments
Open

Very Slow in BottomSheetFragment #47

Fr099y opened this issue Mar 16, 2018 · 2 comments

Comments

@Fr099y
Copy link

Fr099y commented Mar 16, 2018

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.

@hoanghiephui
Copy link

me too

@fevziomurtekin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants