lottie-android icon indicating copy to clipboard operation
lottie-android copied to clipboard

LottieAnimationView missed little animation frame when it `s started ~

Open xielihuang opened this issue 2 years ago • 0 comments

hello , I loaded this json file by raw resource and called LottieAnimationView$playAnimation method. when it was playing , it `s missing lot of frame... I guessed that it is not support to gradient stroke on android but I found that issue on IOS ...

this is my demo code ... `

    val lottieView = findViewById(R.id.lv_lottie)
    lottieView.setAnimation(R.raw.data)
    lottieView.addLottieOnCompositionLoadedListener {
        lottieView.setMinAndMaxFrame(it.startFrame.toInt(),it.endFrame.toInt())
        lottieView.progress = 0f
        lottieView.setComposition(it)
        lottieView.playAnimation()
    }

followed my json file ~ I dont know why that animation was missed lots of frame... please tell me how to fixed it or the better way to play this anim , THANKS ! json.zip

xielihuang avatar Aug 03 '22 07:08 xielihuang