@Override
  public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    final ImageView imageView = (ImageView) view.findViewById(R.id.image);
    VitoView.show(sampleUris().createSampleUri(), imageView);

    view.findViewById(R.id.btn_random_uri)
        .setOnClickListener(
            new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                VitoView.show(sampleUris().createSampleUri(), imageView);
              }
            });
  }
Simple Vito fragment that just displays an image.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/vito/VitoSimpleFragment.java