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

Lag Animations #39

Open
FayaX-PT opened this issue Nov 21, 2015 · 9 comments
Open

Lag Animations #39

FayaX-PT opened this issue Nov 21, 2015 · 9 comments

Comments

@FayaX-PT
Copy link

Hello.
When i use a normal layout, with just a background color my animation is very smooth, but when i add one imageview to the layout i have a animation with lag.

@wdullaer
Copy link
Owner

Are you sure you are using the latest version of the library?

If after doing a build clean, you are still experiencing this, can you show a gif or video of what's wrong?
Also which version of android are you using and are you experiencing this on an actual device or in the emulator?

@FayaX-PT
Copy link
Author

I am using last version and Android 6.0 in a real de vice. I already tested in other real device and the result was the same.
Later I will post a gif :)

@wdullaer
Copy link
Owner

Can you also try the last version before 2.0.0?
I changed how the library invalidates views when animating.

@FayaX-PT
Copy link
Author

Already tested the last version before 2.0.0 :D

@FayaX-PT
Copy link
Author

The animation lag just occurs when is to dismiss

mygif 1

@wdullaer
Copy link
Owner

I see what you mean, but I don't think there's much I can do here.
The animation is done via an android ValueAnimator.
Maybe it'll be more smooth if I use a ViewProperty animator with scale rather than the height attribute. I'll give it a shot.

I never really noticed this lag, and to be honest I thought the glitch was much worse when I read your post.

@FayaX-PT
Copy link
Author

I will appreciate that :)

@avarunroyal
Copy link

Can you please tell me how to implement animation with delete image and swipe I am able to get the swipe action it works great but need to add a delete image just like gmail without movement.

@wdullaer
Copy link
Owner

@avarunroyal
Can you create a new ticket rather than hijack this one?
I'm also not entirely sure I understand your request. You can use setFixedBackgrounds(true) to keep the swipebackgrounds static.
As always: try out the sample app, read the docs and mess around a bit.

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