Skip to content
This repository has been 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.