@Override
          public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
            RoundingOptions roundingOptions = null;
            if (isChecked) {
              roundingOptions =
                  RoundingOptions.forCornerRadiusPx(
                      buttonView
                          .getResources()
                          .getDimensionPixelSize(R.dimen.drawee_hierarchy_corner_radius));
            }
            mImageOptions = mImageOptions.extend().round(roundingOptions).build();
          }
A {@link Fragment} that illustrates the different drawables one can set for ImageOptions.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/vito/ImageLayersFragment.java