3
Lottie 애니메이션을 구현 중이며 전체 애니메이션이 훌륭하게 작동합니다. 그러나, 나는 일정한 양의 시간 후에 다시 시작할 수있는 30 프레임 후에 애니메이션을 일시 정지시키는 약간의 코드를 추가하고 싶습니다. 여기까지 코드가 있습니다Lottie 애니메이션 일시 중지 및 다시 시작
animationView.playAnimation(0, 30)
animationView.addAnimatorListener(object : Animator.AnimatorListener {
override fun onAnimationEnd(animation: Animator) {
if (isLoading == false) {
//Everything has loaded. Continue Animation
//This line has no effect. The animation does not continue
animationView.playAnimation(30, 60)
//Resuming the animation just makes the animation disappear
//animation.resume()
}
}
어떤 조언을 주시면 감사하겠습니다!