@Override
        public void onAnimationFrame(Drawable drawable, int frameNumber) {
          if (mSeekBar != null) {
            mSeekBar.setProgress(frameNumber);
          }
        }
Helper class that manages animation controls: Play / pause, reset and a seekbar.
samples/animation2/src/main/java/com/facebook/samples/animation2/utils/AnimationControlsManager.java