WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

dotlottie/player-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

dotlottie-android Support

We're currently working on support for Android.

Using dotLottie right now

In the meantime, you can use the patched version of LottieCompositionFactory the lottie-android library.

Copy or clone the file DotLottieCompositionFactory.java into your project, and replace instances of LottieCompositionFactory with DotLottieCompositionFactory

DotLottieCompositionFactory.fromRawRes(this, R.raw.lottie_resource)
    .addListener {
        animationView.setComposition(it)
        animationView.playAnimation()
    }
    .addFailureListener {
        it.printStackTrace()
    }

Caveats

  • Currently only accepts single animations.
  • No support for setting animations in XML yet.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages