Basic Workflow
Switch from static assets to animations with 3 lines of code!
Static Asset Workflow
<ImageView
android:id="@+id/image_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawble/your_drawable" />Lottie workflow
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/animation_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
app:lottie_rawRes="@raw/your_animation"
app:lottie_loop="true"
app:lottie_autoPlay="true" />Last updated