Java 类com.facebook.react.views.image.ImageResizeMode 实例源码

项目:RNLearn_Project1    文件:RCTImageView.java   
@ReactProp(name = ViewProps.RESIZE_MODE)
public void setResizeMode(@Nullable String resizeMode) {
  ScaleType scaleType = ImageResizeMode.toScaleType(resizeMode);
  if (mDrawImage.getScaleType() != scaleType) {
    getMutableDrawImage().setScaleType(scaleType);
  }
}
项目:RNLearn_Project1    文件:RCTImageView.java   
@ReactProp(name = ViewProps.RESIZE_MODE)
public void setResizeMode(@Nullable String resizeMode) {
  ScaleType scaleType = ImageResizeMode.toScaleType(resizeMode);
  if (mDrawImage.getScaleType() != scaleType) {
    getMutableDrawImage().setScaleType(scaleType);
  }
}
项目:react-native-imagewand    文件:RNImageWand.java   
public RNImageWand(
        Context context,
        AbstractDraweeControllerBuilder draweeControllerBuilder,
        @Nullable Object callerContext) {
    super(context, buildHierarchy(context));
    mScaleType = ImageResizeMode.defaultValue();
    mDraweeControllerBuilder = draweeControllerBuilder;
    mRoundedCornerPostprocessor = new RoundedCornerPostprocessor();
    mCallerContext = callerContext;
}
项目:react-native-image-android    文件:ImageAndroidView.java   
public ImageAndroidView(
        Context context,
        AbstractDraweeControllerBuilder draweeControllerBuilder,
        @Nullable Object callerContext) {
    super(context, buildHierarchy(context));
    mScaleType = ImageResizeMode.defaultValue();
    mDraweeControllerBuilder = draweeControllerBuilder;
    mRoundedCornerPostprocessor = new RoundedCornerPostprocessor();
    mCallerContext = callerContext;
}
项目:react-native-imagewand    文件:RNImageWandManager.java   
@ReactProp(name = ViewProps.RESIZE_MODE)
public void setResizeMode(RNImageWand view, @Nullable String resizeMode) {
    view.setScaleType(ImageResizeMode.toScaleType(resizeMode));
}
项目:react-native-image-android    文件:ImageAndroidManager.java   
@ReactProp(name = ViewProps.RESIZE_MODE)
public void setResizeMode(ImageAndroidView view, @Nullable String resizeMode) {
    view.setScaleType(ImageResizeMode.toScaleType(resizeMode));
}