@Override
          public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
            if (isChecked) {
              mAnimatedDrawable.start();
            } else {
              mAnimatedDrawable.stop();
            }
          }
Helper class that manages animation controls: Play / pause, reset and a seekbar.
samples/animation2/src/main/java/com/facebook/samples/animation2/utils/AnimationControlsManager.java