@Override
          public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
            final SimpleScaleTypeAdapter.Entry spinnerEntry =
                (SimpleScaleTypeAdapter.Entry) adapter.getItem(position);
            changeMainVitoScaleType(spinnerEntry.scaleType, spinnerEntry.focusPoint);
          }
Simple Vito fragment that illustrates different scale types
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/vito/VitoScaleTypeFragment.java