@Override public void onResult(LottieComposition result) {
      LottieAnimationView targetView = targetReference.get();
      if (targetView == null) {
        return;
      }
      targetView.setComposition(result);
    }
This view will load, deserialize, and display an After Effects animation exported with
bodymovin (<a href="https://github.com/airbnb/lottie-web">github.com/airbnb/lottie-web</a>).
<p>
You may set the animation in one of two ways:
1) Attrs: {@link R.styleable#LottieAnimationView_lottie_fileName}
2) Programmatically:
{@link #setAnimation(String)}
{@link #setAnimation(int)}
{@link #setAnimation(InputStream, String)}
{@link #setAnimationFromJson(String, String)}
{@link #setAnimationFromUrl(String)}
{@link #setComposition(LottieComposition)}
<p>
You can set a default cache strategy with {@link R.attr#lottie_cacheComposition}.
<p>
You can manually set the progress of the animation with {@link #setProgress(float)} or
{@link R.attr#lottie_progress}

@see <a href="http://airbnb.io/lottie">Full Documentation</a>
lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java