@Override
          public void onClick(View v) {
            if (!mShowing) {
              for (int i = 0; i < mImagesHolder.getChildCount(); i++) {
                ImageView imageView = (ImageView) mImagesHolder.getChildAt(i);
                VitoView.show(
                    mUris[i],
                    IMAGE_OPTIONS,
                    "ImagePipelinePrefetchFragment",
                    mImageOriginListener,
                    imageView);
              }
            } else {
              for (int i = 0; i < mImagesHolder.getChildCount(); i++) {
                VitoView.release(mImagesHolder.getChildAt(i));
              }
            }
            mShowing = !mShowing;
          }
Fragment that illustrates how to prefetch images to disk cache so that they load faster when
finally displayed.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imagepipeline/ImagePipelinePrefetchFragment.java