Commit 205944c3 by han xu

上传身份证图片

parent 3d7fca81
......@@ -49,6 +49,19 @@ public class GlideImageLoader {
.into(view);
}
public static void load_1(Context context, String imageRes, ImageView view) {
RequestOptions options = new RequestOptions()
.centerInside()
// 01 optionalCenterCrop 02 centerCrop optionalFitCenter fitCenter
// .placeholder(R.drawable.icon_video_default)
.diskCacheStrategy(DiskCacheStrategy.ALL);
Glide.with(context)
.load(imageRes)
.transition(withCrossFade())
.apply(options)
.into(view);
}
public static void loadHead(Context context, String imageRes, ImageView view) {
RequestOptions options = new RequestOptions()
.centerCrop()
......
......@@ -217,7 +217,7 @@ public class RegisterActivity extends BaseActivity<SImplePresenter, ActivityRegi
identityPath = mSelectList.get(0).getRealPath();
}
}
GlideImageLoader.load(mActivity, identityPath, mBind.idetntity);
GlideImageLoader.load_1(mActivity, identityPath, mBind.idetntity);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment