-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
It show error page when I use Lottie. #301
Comments
@wdmxzf Try making your animation smaller? The After Effects composition size gets converted from pixels to dps. See what happens when you make your composition like 200px wide max |
@wdmxzf I understand that. There are limitations in the Android drawing framework that limits the size of the canvas that can be used for a matte. In this case, it appears as if the composition is drawing larger than the screen and being scaled down but everything that was originally larger than the screen is getting clipped. Try making your AE comp smaller or using the setScale method on LottieAnimationView |
Thank you for your help. |
Previously, animations were given a max scale due to saveLayer, which is used for mattes and masks, only saving the canvas size. This is problematic when the scale makes the animations larger than the view because the masks and mattes get clipped. This gets around that by scaling up the animation up until the size of the view then scaling the canvas with the remaining scale. #395 #301 #161 #326 #315 Fixes #404
It is found in my page of fragment, the picture is
The text was updated successfully, but these errors were encountered: