解決方法:
public static void setImageUriWithRound(Context context, String url, ImageView iv, int holder) {
if (context == null || TextUtils.isEmpty(url)) return;
int radius=3;
Glide.with(context.getApplicationContext()).load(url)
.apply(new RequestOptions().placeholder(holder).error(holder).centerCrop()
.transform(new RoundCornerTransformation(radius)))
.thumbnail(loadTransform(context, holder, radius))
.into(iv);
}
private static RequestBuilder<Drawable> loadTransform(Context context, @DrawableRes int placeholderId, float radius) {
return Glide.with(context)
.load(placeholderId)
.apply(new RequestOptions().centerCrop()
.transform(new RoundCornerTransformation((int) radius)));
}