private void setupResetButton() {
    if (mResetButton == null) {
      return;
    }
    mResetButton.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View view) {
            mAnimatedDrawable.stop();
            mAnimatedDrawable.jumpToFrame(0);
          }
        });
  }
Helper class that manages animation controls: Play / pause, reset and a seekbar.
samples/animation2/src/main/java/com/facebook/samples/animation2/utils/AnimationControlsManager.java