Lottie (Android)

在 Android 上原生渲染 After Effects 動畫
31,260
Lottie 團隊

適用於 Android 的 Lottie

Get it on Google Play

Lottie 是一個適用於 Android 和 iOS 的行動程式庫,可解析以 JSON 格式匯出的 Adobe After Effects 動畫(使用 Bodymovin),並在行動裝置上原生渲染!

設計師可以第一次建立並發佈精美的動畫,而無需工程師費力地手動重新建立。俗話說一圖勝千言,這裡有 13,000 個字的效果:

請在 airbnb.io/lottie 查看文件、常見問題、協助、範例等。

Example1

Example2

Example3

Community

Example4

下載

Gradle 是唯一支援的建置設定,因此只需將依賴項新增到專案的 build.gradle 檔案即可

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

Lottie 2.8.0 及更高版本僅支援已遷移到 androidx 的專案。如需更多資訊,請閱讀 Google 的遷移指南