protected void inflateHierarchy(Context context, @Nullable AttributeSet attrs) {
    if (FrescoSystrace.isTracing()) {
      FrescoSystrace.beginSection("GenericDraweeView#inflateHierarchy");
    }
    GenericDraweeHierarchyBuilder builder =
        GenericDraweeHierarchyInflater.inflateBuilder(context, attrs);
    setAspectRatio(builder.getDesiredAspectRatio());
    setHierarchy(builder.build());
    if (FrescoSystrace.isTracing()) {
      FrescoSystrace.endSection();
    }
  }
DraweeView that uses GenericDraweeHierarchy.

<p>The hierarchy can be set either programmatically or inflated from XML. See {@link
GenericDraweeHierarchyInflater} for supported XML attributes.

<p>This class has been deprecated. Please use VitoView instead.
drawee/src/main/java/com/facebook/drawee/view/GenericDraweeView.java