Skip to content Skip to sidebar Skip to footer

Lottieanimation Not Running Inside Fragment

I have a star animation for giving rating and I created three of such LottieAnimationViews inside my fragment for the purpose of reuse-ability. The LottieAnimation doesn't even sta

Solution 1:

Make sure you set the image View to isClickable = true and isFocusable = true in xml.

Start the lottie animation using the lottieView.playAnimation(); method and for the unclick try this

if(lottieTest.getFrame() == lottieTest.getMaxFrame()) {
   lottieTest.setFrame(1);
}

Post a Comment for "Lottieanimation Not Running Inside Fragment"