private CachingStrategyEntry createKeepLastCachingStrategy() {
    return new CachingStrategyEntry() {

      @Override
      public BitmapFrameCache createBitmapFrameCache() {
        return new KeepLastFrameCache();
      }

      @Override
      public int getTitleResId() {
        return R.string.cache_keep_last;
      }
    };
  }
Manages a {@link Spinner} that can be used to switch the used caching implementation for {@link
BitmapAnimationBackend}s.
samples/animation2/src/main/java/com/facebook/samples/animation2/bitmap/BitmapAnimationCacheSelectorConfigurator.java