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

When I set a different size, the animation flashes #2329

Closed
zhangzhuo1024 opened this issue Jul 4, 2023 · 3 comments · Fixed by #2440
Closed

When I set a different size, the animation flashes #2329

zhangzhuo1024 opened this issue Jul 4, 2023 · 3 comments · Fixed by #2440

Comments

@zhangzhuo1024
Copy link

What version of Lottie did you test this on?
implementation 'com.airbnb.android:lottie:6.0.0'

What version of Android did you test this on?
android11

The same json file, when I set the LottieAnimationView to a smaller size, the animation worked fine; When I set the LottieAnimationView to a larger size, the animation flashes

<com.airbnb.lottie.LottieAnimationView
    android:layout_width="match_parent"
    android:layout_height="500dp"
    app:lottie_autoPlay="true"
    app:lottie_fileName="91502-waves.json"
    app:lottie_loop="true"
    app:lottie_speed="1" />
<com.airbnb.lottie.LottieAnimationView
    android:layout_width="180dp"
    android:layout_height="180dp"
    app:lottie_autoPlay="true"
    app:lottie_fileName="91502-waves.json"
    app:lottie_loop="true"
    app:lottie_speed="1" />

videotogif_20230704_163943

@zhangzhuo1024
Copy link
Author

The same results were found on the simulator

@gpeal
Copy link
Collaborator

gpeal commented Jul 16, 2023

Can you attach your animation? Does this happen when you set renderMode to both software and hardware?

@zhangzhuo1024
Copy link
Author

mywaves.zip

Adding Android: hardwareAccelerated="true" to the activity also has no effect

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

Successfully merging a pull request may close this issue.

2 participants