@Override
          public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
            CustomImageFormatConfigurator.setGlobalColorDecoderEnabled(getContext(), isChecked);
          }
Color XML example. It has a toggle to enable / disable Color XML support and displays 1 image.

<p>The supported XML color format is: <color>#rrggbb</color>
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/imageformat/color/ImageFormatColorFragment.java