code: public void setAnimation(@RawRes final int rawRes) {
      this.animationResId = rawRes;
      animationName = null;
      setCompositionTask(LottieCompositionFactory.fromRawRes(getContext(), rawRes));
    }
docs: Sets the animation from a file in the raw directory.
  This will load and deserialize the file asynchronously.