private void setupSeekBar() {
    if (mSeekBar == null) {
      return;
    }
    mSeekBar.setOnSeekBarChangeListener(
        new SeekBar.OnSeekBarChangeListener() {
          @Override
          public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
            if (fromUser) {
              mAnimatedDrawable.jumpToFrame(progress);
            }
          }

          @Override
          public void onStartTrackingTouch(SeekBar seekBar) {}

          @Override
          public void onStopTrackingTouch(SeekBar seekBar) {}
        });
  }
Helper class that manages animation controls: Play / pause, reset and a seekbar.
samples/animation2/src/main/java/com/facebook/samples/animation2/utils/AnimationControlsManager.java