public static AnimationBackend createSampleColorAnimationBackend(Resources resources) {
    // Get the animation duration in ms for each color frame
    int frameDurationMs = resources.getInteger(android.R.integer.config_mediumAnimTime);
    // Create and return the backend
    return new ExampleColorBackend(SampleData.COLORS, frameDurationMs);
  }
Creates a simple animation backend that cycles through a list of colors.

@return the backend to use
samples/animation2/src/main/java/com/facebook/samples/animation2/color/ExampleColorBackend.java