public void setAnimation(@RawRes final int rawRes) {
    this.animationResId = rawRes;
    animationName = null;
    setCompositionTask(fromRawRes(rawRes));
  }
Sets the animation from a file in the raw directory.
This will load and deserialize the file asynchronously.
lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java