MCPcopy
hub / github.com/airbnb/lottie-android

github.com/airbnb/lottie-android @v6.7.1 sqlite

repository ↗ · DeepWiki ↗ · release v6.7.1 ↗
1,937 symbols 6,145 edges 236 files 372 documented · 19%
README

Lottie for Android, iOS, React Native, Web, and Windows

Build Status

Get it on Google Play

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:

Sponsors

Lottie is maintained and improved on nights and weekends. If you use Lottie in your app, please consider sponsoring it to help ensure that we can continue to improve the project we love. Click the sponsor button above to learn more

Sponsor Button

Lead Sponsors

Lottiefiles

Lottie Lab

Airbnb

Stream

Emerge Tools

Coinbase

View documentation, FAQ, help, examples, and more at airbnb.io/lottie

Example1

Example2

Example3

Community

Example4

Download

Gradle is the only supported build configuration, so just add the dependency to your project build.gradle file:

dependencies {
  implementation 'com.airbnb.android:lottie:$lottieVersion'
}

The latest Lottie version is: lottieVersion

The latest stable Lottie-Compose version is: lottieVersion Click here for more information on Lottie-Compose.

Lottie 2.8.0 and above only supports projects that have been migrated to androidx. For more information, read Google's migration guide.

Contributing

Because development has started for Lottie Compose, Gradle, and the Android Gradle Plugin will be kept up to date with the latest canaries. This also requires you to use Android Studio Canary builds. Preview builds can be installed side by side with stable versions.

Extension points exported contracts — how you extend this code

LottieFetchResult (Interface)
The result of the operation of obtaining a Lottie animation [6 implementers]
lottie/src/main/java/com/airbnb/lottie/network/LottieFetchResult.java
KeyPathElement (Interface)
Any item that can be a part of a KeyPath should implement this. [14 implementers]
lottie/src/main/java/com/airbnb/lottie/model/KeyPathElement.java
SimpleLottieValueCallback (Interface)
Delegate interface for LottieValueCallback. This is helpful for the Kotlin API because you can use a SAM convers [22 implementers]
lottie/src/main/java/com/airbnb/lottie/value/SimpleLottieValueCallback.java
LottieListener (Interface)
Receive a result with either the value or exception for a LottieTask [4 implementers]
lottie/src/main/java/com/airbnb/lottie/LottieListener.java
ContentModel (Interface)
(no doc) [28 implementers]
lottie/src/main/java/com/airbnb/lottie/model/content/ContentModel.java

Core symbols most depended-on inside this repo

getValue
called by 162
lottie/src/main/java/com/airbnb/lottie/value/SimpleLottieValueCallback.java
size
called by 156
lottie/src/main/java/com/airbnb/lottie/parser/moshi/LinkedHashTreeMap.java
get
called by 150
lottie/src/main/java/com/airbnb/lottie/parser/moshi/LinkedHashTreeMap.java
addUpdateListener
called by 90
lottie/src/main/java/com/airbnb/lottie/animation/content/ShapeModifierContent.java
addAnimation
called by 81
lottie/src/main/java/com/airbnb/lottie/model/layer/BaseLayer.java
isTraceEnabled
called by 77
lottie/src/main/java/com/airbnb/lottie/L.java
add
called by 76
lottie/src/main/java/com/airbnb/lottie/utils/MeanCalculator.java
hasNext
called by 73
lottie/src/main/java/com/airbnb/lottie/parser/moshi/JsonReader.java

Shape

Method 1,673
Class 214
Interface 29
Enum 21

Languages

Java100%

Modules by API surface

lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java122 symbols
lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java114 symbols
lottie/src/test/java/com/airbnb/lottie/KeyPathTest.java65 symbols
lottie/src/main/java/com/airbnb/lottie/parser/moshi/LinkedHashTreeMap.java59 symbols
lottie/src/main/java/com/airbnb/lottie/animation/keyframe/BaseKeyframeAnimation.java50 symbols
lottie/src/test/java/com/airbnb/lottie/LottieValueAnimatorUnitTest.java44 symbols
lottie/src/main/java/com/airbnb/lottie/LottieComposition.java44 symbols
lottie/src/main/java/com/airbnb/lottie/model/layer/BaseLayer.java41 symbols
lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java36 symbols
lottie/src/main/java/com/airbnb/lottie/utils/LottieValueAnimator.java34 symbols
lottie/src/main/java/com/airbnb/lottie/parser/moshi/JsonUtf8Reader.java32 symbols
lottie/src/main/java/com/airbnb/lottie/model/layer/Layer.java30 symbols

For agents

$ claude mcp add lottie-android \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact