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

SnackProgressBar motion animation of attached views #32

Closed
0x7e57 opened this issue May 20, 2020 · 3 comments
Closed

SnackProgressBar motion animation of attached views #32

0x7e57 opened this issue May 20, 2020 · 3 comments

Comments

@0x7e57
Copy link

0x7e57 commented May 20, 2020

When the root view is not a CoordinatorLayout the animation of attached views is not synchronized with the SnackProgressBarLayout animation.
.setViewsToMove(new View[]{ viewBinding.fab, })
how to remove animation delay of attached views?

@tingyik90
Copy link
Owner

tingyik90 commented May 20, 2020

Thanks for the good catch. This was due to the BaseTransientBottomBar using FastOutSlowInInterpolator which was not applied to viewsToMove. See commit 922c1eb. Try implementation 'com.github.tingyik90:snackprogressbar:master-SNAPSHOT' and let me know if this solves the animation issue.

I've tested it on an emulator and slowed the animation duration by 10x and it matches.

@0x7e57
Copy link
Author

0x7e57 commented May 20, 2020

On my device, this solved the animation problem.
Thanks!

@tingyik90
Copy link
Owner

Released as v6.4.1.

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

2 participants