0

Some of lottie file animation get deform when use them on android. Is there problem in there usage or that animation is bad. The animations looks good on lottiefile website. https://lottiefiles.com/1844-timer

here is my screenshot from that animation

here is my xml that I use other animations of lottie like this they work perfect.

<com.airbnb.lottie.LottieAnimationView
            android:id="@+id/lottie"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:lottie_autoPlay="false"
            app:lottie_fileName="count_down.json"
            app:lottie_loop="false" />
TylerH
  • 20,799
  • 66
  • 75
  • 101
mahdi shahbazi
  • 1,882
  • 10
  • 19
  • What do you mean by "deformed". Can you share a screeshot? You can also try to set a scale type (e.g. android:scaleType="centerCrop") to the LottieView.. – guipivoto May 22 '19 at 12:04
  • @W0rmH0le screenshot added.yes I tried centerCrop and all other scale types – mahdi shahbazi May 22 '19 at 12:13
  • Humm it seems a problem with the animation since only a specific item of the composition is misaligned. Did you try to use a different type of scale? center, centerInside, centerCrop.. Maybe, some of them can fix the position of that layer – guipivoto May 22 '19 at 12:26
  • @W0rmH0le yes I use but none them dosen't help – mahdi shahbazi May 22 '19 at 16:24
  • Please, share your layout and how you start the animation. I tested that same file and it is working fine for me – guipivoto May 22 '19 at 17:04
  • @W0rmH0le realy??? it's fine?? how it can be?? i haven't access my code now. but I can say you it's very simple and I don't add any thing to it.a simple linear layout that have LottieAnimationView and for start try to use it's own auto play but nothing changed and it is still deformed – mahdi shahbazi May 22 '19 at 18:26
  • I didn't nothing special as well. It is working fine for me. That's why I requested more details – guipivoto May 22 '19 at 18:44
  • @W0rmH0le Ok, thanks man. I must try start a new and check it in that again. maybe there is problem in codes. – mahdi shahbazi May 22 '19 at 18:52

0 Answers0