@Override
  public boolean drawFrame(Drawable parent, Canvas canvas, int frameNumber) {
    Drawable drawable = getDrawable(mDrawableResourceIds.get(frameNumber));
    drawable.setBounds(mBounds != null ? mBounds : parent.getBounds());
    drawable.draw(canvas);
    return true;
  }
Local drawable animation backend that chains local drawables together.
samples/animation2/src/main/java/com/facebook/samples/animation2/local/LocalDrawableAnimationBackend.java