Posts

Showing posts from January, 2023

How to add Lottie Animation in an Android app

Image
  Dynamic properties of Lottie Animations These can be used to give the app a theme. These can be added in response to any event such as error, success, etc. These can be animated to a single part of the animation in response to any user. Responding to view sizes or other values not known at design time. Advantages of Lottie It supports a larger set of After Effects features. Developers can set the progress to add the animation to a gesture, event, etc. Masks are anti-aliased. Developers have the freedom to change speed and color of a specific part of an animations dynamically. Approach:   Step 1:  Add this dependency into the  App level gradle module  of the project and then  sync  the gradle with the project. This library enables us to use Lottie’s animations:  Java // Lottie dependency def lottieVersion = "3.4.0" implementation "com.airbnb.android:lottie:$lottieVersion" Step 2:  Choose any animation from  here  and download the ...