Java 类com.facebook.drawee.generic.GenericDraweeHierarchyInflater 实例源码

项目:GitHub    文件:ZoomableDraweeView.java   
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());
}
项目:Zoomable    文件:ZoomableDraweeView.java   
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());
}
项目:CommentGallery    文件:ZoomableDraweeView.java   
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());
}
项目:fresco    文件:ZoomableDraweeView.java   
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());
}
项目:apps-android-wikipedia    文件:ZoomableDraweeView.java   
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());
}
项目:GitHub    文件:GenericDraweeView.java   
protected void inflateHierarchy(Context context, @Nullable AttributeSet attrs) {
  GenericDraweeHierarchyBuilder builder =
      GenericDraweeHierarchyInflater.inflateBuilder(context, attrs);
  setAspectRatio(builder.getDesiredAspectRatio());
  setHierarchy(builder.build());
}
项目:fresco    文件:GenericDraweeView.java   
protected void inflateHierarchy(Context context, @Nullable AttributeSet attrs) {
  GenericDraweeHierarchyBuilder builder =
      GenericDraweeHierarchyInflater.inflateBuilder(context, attrs);
  setAspectRatio(builder.getDesiredAspectRatio());
  setHierarchy(builder.build());
}