Learn how to integrate Lottie animations into your Android app effortlessly.
implementation 'com.airbnb.android:lottie:6.0.0'
<com.airbnb.lottie.LottieAnimationView android:layout_width="wrap_content" android:layout_height="wrap_content" app:lottie_rawRes="@raw/animation" app:lottie_autoPlay="true" app:lottie_loop="true" />
LottieAnimationView animationView = findViewById(R.id.animationView); animationView.setAnimation(R.raw.animation); animationView.playAnimation();
animationView.pauseAnimation(); // Pause animationView.resumeAnimation(); // Resume animationView.cancelAnimation(); // Stop
Find free animations at Unicornicons.