public void setAnimationFromUrl(String url, @Nullable String cacheKey) {
    LottieTask<LottieComposition> task = LottieCompositionFactory.fromUrl(getContext(), url, cacheKey);
    setCompositionTask(task);
  }
Load a lottie animation from a url. The url can be a json file or a zip file. Use a zip file if you have images. Simply zip them together and
lottie
will unzip and link the images automatically.
<p>
Under the hood, Lottie uses Java HttpURLConnection because it doesn't require any transitive networking dependencies. It will download the file
to the application cache under a temporary name. If the file successfully parses to a composition, it will rename the temporary file to one that
can be accessed immediately for subsequent requests. If the file does not parse to a composition, the temporary file will be deleted.
<p>
You can replace the default network stack or cache handling with a global {@link LottieConfig}

@see LottieConfig.Builder
@see Lottie#initialize(LottieConfig)
lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java