Java 类com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder 实例源码

项目:GitHub    文件:InstrumentedDraweeView.java   
@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());
}
项目:GitHub    文件:InstrumentedDraweeView.java   
@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());
}
项目:Li-MVPArms    文件:ConfigConstants.java   
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;
  }
项目:ImageLoadPK    文件:WatchDraweeImage.java   
@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());

}
项目:android-support-learn    文件:PApplication.java   
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;
    }
项目:fresco    文件:InstrumentedDraweeView.java   
@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());
}
项目:fresco    文件:InstrumentedDraweeView.java   
@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());
}
项目:BlueBoard    文件:FrescoConfig.java   
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;
    }
项目:GitHub    文件:SimpleDraweeView.java   
/** Initializes {@link SimpleDraweeView} with supplier of Drawee controller builders. */
public static void initialize(
    Supplier<? extends SimpleDraweeControllerBuilder> draweeControllerBuilderSupplier) {
  sDraweeControllerBuilderSupplier = draweeControllerBuilderSupplier;
}
项目:GitHub    文件:SimpleDraweeView.java   
protected SimpleDraweeControllerBuilder getControllerBuilder() {
  return mSimpleDraweeControllerBuilder;
}
项目:fresco    文件:SimpleDraweeView.java   
/** Initializes {@link SimpleDraweeView} with supplier of Drawee controller builders. */
public static void initialize(
    Supplier<? extends SimpleDraweeControllerBuilder> draweeControllerBuilderSupplier) {
  sDraweeControllerBuilderSupplier = draweeControllerBuilderSupplier;
}
项目:fresco    文件:SimpleDraweeView.java   
protected SimpleDraweeControllerBuilder getControllerBuilder() {
  return mSimpleDraweeControllerBuilder;
}