Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

8 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages