@Override
  public View getView(int position, View convertView, ViewGroup parent) {
    InstrumentedVitoView vitoView;
    if (convertView == null) {
      final Context context = parent.getContext();
      vitoView =
          new InstrumentedVitoView(context, VitoUtil.createImageOptions(context, mConfig), mConfig);
      SizeUtil.setConfiguredSize(parent, vitoView, mConfig);
      vitoView.setPadding(mPaddingPx, mPaddingPx, mPaddingPx, mPaddingPx);
    } else {
      vitoView = (InstrumentedVitoView) convertView;
    }
    final Uri uri = getItem(position);
    vitoView.initInstrumentation(uri.toString(), mPerfListener);
    PipelineUtil.addOptionalFeatures(
        vitoView
            .getImageOptionsBuilder()
            .resize(
                new ResizeOptions(
                    vitoView.getLayoutParams().width, vitoView.getLayoutParams().height)),
        mConfig);
    vitoView.setImageURI(uri, "VitoViewListAdapter");
    return vitoView;
  }
This is the implementation of the Adapter for the ListView
samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/fragments/recycler/VitoViewListAdapter.java