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

View.setAlpha causes unexpected rendering #2607

Open
jbr-sleepwave opened this issue Jan 16, 2025 · 0 comments
Open

View.setAlpha causes unexpected rendering #2607

jbr-sleepwave opened this issue Jan 16, 2025 · 0 comments

Comments

@jbr-sleepwave
Copy link

Describe the bug
Applying alpha on the LottieAnimationView is "broken".

What version of Lottie did you test this on?
6.6.2, 6.3.0 - broken
3.4.0 - works

What version of Android did you test this on?
A10, 13, 14, 15

Steps To Reproduce
Have lottie animation with multiple layers.
For example this one
https://lottiefiles.com/free-animation/halloween-pumpkin-black-cat-i28jx8Xt3X
lottie_animation.zip

Start changing alpha of the LottieAnimationView in animation or simply via View.setAlpha
(lottie paused at the time of changing alpha)

  • lottie_renderMode from xml any value doesn't seem to have any effect

Video:
animation is changing alpha to 0 in 2s to have "fade out" effect.
Looks like the alpha is set to each layer individually ? it doesn't fade out consistently as expected.
image

Screen.Recording.2025-01-16.105853.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant