Open itgoyo opened 6 years ago
Glide.with(getActivity()) .load(Constants.IP + imageUrl) .transform(new GlideCircleTransform(getActivity())) .placeholder(R.mipmap.icon_no_head_image) .error(R.mipmap.icon_no_head_image) .into(new SimpleTarget<GlideDrawable>() { // 加上这段代码 可以解决 @Override public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> glideAnimation) { iv_head_image.setImageDrawable(resource); //显示图片 } });