@Override
            public void onClick(View v) {
              if (mIsPlaying) {
                VitoView.show(uri, imageOptionsPaused, CALLER_CONTEXT, mImageView);
              } else {
                VitoView.show(uri, imageOptionsAutoPlay, CALLER_CONTEXT, mImageView);
              }
              mIsPlaying = !mIsPlaying;
            }
GIF example that illustrates how to display a simple GIF file
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imageformat/gif/ImageFormatGifFragment.java