@Override
      public AnimationBackend createBackend() {
        // Get the animation duration in ms for each color frame
        final int frameDurationMs =
            mContext.getResources().getInteger(android.R.integer.config_mediumAnimTime);
        // Create and return the backend
        return ExampleBitmapAnimationFactory.createColorBitmapAnimationBackend(
            SampleData.COLORS, frameDurationMs, new NoOpCache());
      }
Animation backend configurator that holds all sample animation backends.
samples/animation2/src/main/java/com/facebook/samples/animation2/utils/SampleAnimationBackendConfigurator.java