@Override
  public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    mImageView = view.findViewById(R.id.drawee_view);
    mSpinner = view.findViewById(R.id.spinner);

    final CreateOptionsAdapter adapter = new CreateOptionsAdapter();
    mSpinner.setAdapter(adapter);
    mSpinner.setOnItemSelectedListener(
        new AdapterView.OnItemSelectedListener() {
          @Override
          public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
            final CreateOptions spinnerEntry = (CreateOptions) adapter.getItem(position);
            initDisplayedBitmap(spinnerEntry);
          }

          @Override
          public void onNothingSelected(AdapterView<?> parent) {}
        });
  }
Reference to the currently displayed bitmap
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imagepipeline/ImagePipelineBitmapFactoryFragment.java