protected void inflateHierarchy(Context context, @Nullable AttributeSet attrs) {
    Resources resources = context.getResources();
    GenericDraweeHierarchyBuilder builder =
        new GenericDraweeHierarchyBuilder(resources)
            .setActualImageScaleType(ScalingUtils.ScaleType.FIT_CENTER);
    GenericDraweeHierarchyInflater.updateBuilder(builder, context, attrs);
    setAspectRatio(builder.getDesiredAspectRatio());
    setHierarchy(builder.build());
  }
DraweeView that has zoomable capabilities.

<p>Once the image loads, pinch-to-zoom and translation gestures are enabled.

<p>This class has been deprecated. Please use VitoView instead.
samples/zoomable/src/main/java/com/facebook/samples/zoomable/ZoomableDraweeView.java