Answers for "how to add lottie file in android"

2

add lottie to android studio

def lottieVersion = "3.4.0" 
implementation "com.airbnb.android:lottie:$lottieVersion"
Posted by: Guest on May-30-2021
1

how to use lottie in android studio

<com.airbnb.lottie.LottieAnimationView
     android:id="@+id/animationView"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     app:lottie_url="REPLACE_JSON_URL"
     app:lottie_autoPlay="true"
     app:lottie_loop="true"/>
Posted by: Guest on January-23-2021

Browse Popular Code Answers by Language