Cleaned up and updated LottieComposition factory methods (#593) ### Added * `LottieAnimationView#setComposition(JsonReader)` * `LottieAnimationView#setComposition(String jsonString)` ### Removed * `LottieComposition#fromJson(Resources, JSONObject)`. Replaced with one that takes a String and one that takes a JsonReader. ### Deprecated * `LottieAnimationView#setComposition(JSONObject)` This also removes context/resources as a parameter from several methods because it is not needed anymore.
Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations exported as json with Bodymovin and renders them natively on mobile!
For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand. They say a picture is worth 1,000 words so here are 13,000:
Gradle is the only supported build configuration, so just add the dependency to your project build.gradle file:
dependencies { compile 'com.airbnb.android:lottie:2.5.0-beta2' }