@Override
    public int getLoopCount() {
      return LOOP_COUNT_INFINITE;
    }
Bitmap animation factory to create backends for the sample app.
samples/animation2/src/main/java/com/facebook/samples/animation2/bitmap/ExampleBitmapAnimationFactory.java