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

[BUG/FEATURE REQUEST] Lottie very big #28

Closed
P4drote opened this issue May 10, 2020 · 1 comment
Closed

[BUG/FEATURE REQUEST] Lottie very big #28

P4drote opened this issue May 10, 2020 · 1 comment
Assignees

Comments

@P4drote
Copy link

P4drote commented May 10, 2020

When choosing a very large lottie, it looks disproportionate in the dialogue.

It can be solved by changing the property in the xml of the lottie:

android: scaleType = "centerCrop"
by
android: scaleType = "centerInside"

@PatilShreyas
Copy link
Owner

Hi @P4drote, it's not recommended to set scaleType for all animations. If you want to customize it you can do it. Just get AnimationView using calling getAnimationView() on material dialog instance and you can set scale after this.

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