@Override public void setImageURI(Uri uri, @Nullable Object callerContext) { SimpleDraweeControllerBuilder controllerBuilder = getControllerBuilder() .setUri(uri) .setCallerContext(callerContext) .setOldController(getController()); if (controllerBuilder instanceof AbstractDraweeControllerBuilder) { ((AbstractDraweeControllerBuilder<?,?,?,?>) controllerBuilder) .setControllerListener(mListener); } setController(controllerBuilder.build()); }
@Override public void setImageURI(Uri uri, @Nullable Object callerContext) { SimpleDraweeControllerBuilder controllerBuilder = getControllerBuilder() .setUri(uri) .setCallerContext(callerContext) .setOldController(getController()); if (mConfig.instrumentationEnabled && controllerBuilder instanceof AbstractDraweeControllerBuilder) { ((AbstractDraweeControllerBuilder<?,?,?,?>) controllerBuilder) .setControllerListener(mListener); } setController(controllerBuilder.build()); }
public static SimpleDraweeControllerBuilder getSimpleDraweeControllerBuilder(SimpleDraweeControllerBuilder sdcb,Uri uri, Object callerContext,DraweeController draweeController){ SimpleDraweeControllerBuilder controllerBuilder = sdcb .setUri(uri) .setCallerContext(callerContext) // .setAspectRatio(1.33f);//宽高缩放比 .setOldController(draweeController); return controllerBuilder; }
@Override public void setImageURI(Uri uri) { super.setImageURI(uri); SimpleDraweeControllerBuilder controllerBuilder = getControllerBuilder().setUri(uri); if (controllerBuilder instanceof AbstractDraweeControllerBuilder) { ((AbstractDraweeControllerBuilder) controllerBuilder).setControllerListener(mControllerListener); } setController(controllerBuilder.build()); }
public static SimpleDraweeControllerBuilder getSimpleDraweeControllerBuilder(SimpleDraweeControllerBuilder sdcb, Uri uri, Object callerContext, DraweeController draweeController) { SimpleDraweeControllerBuilder controllerBuilder = sdcb .setUri(uri) .setCallerContext(callerContext) // .setAspectRatio(1.33f);//宽高缩放比 .setOldController(draweeController); return controllerBuilder; }
/** Initializes {@link SimpleDraweeView} with supplier of Drawee controller builders. */ public static void initialize( Supplier<? extends SimpleDraweeControllerBuilder> draweeControllerBuilderSupplier) { sDraweeControllerBuilderSupplier = draweeControllerBuilderSupplier; }
protected SimpleDraweeControllerBuilder getControllerBuilder() { return mSimpleDraweeControllerBuilder; }