2018-06-19Glide使用

Glide阴影使用

Glide.with(getActivity())

.load(

userInfoBean.getData().getVip_headimg())

.apply(new RequestOptions().transform(new BlurTransform(getActivity()))

.diskCacheStrategy(DiskCacheStrategy.ALL)

.placeholder(R.drawable.ic_default_image))

.into(mIvAvatarBackground);

Glide圆形

Glide.with(getActivity())

.load(

userInfoBean.getData().getVip_headimg())

.apply(new RequestOptions().transform(new CircleCrop())

.diskCacheStrategy(DiskCacheStrategy.ALL)

.placeholder(R.drawable.ic_default_image))

.into(mIvAvatar);

Glide正常使用

Glide.with(getActivity())

.load(

userInfoBean.getData().getVip_headimg())

.apply(new RequestOptions().transform(new CenterCrop())

.diskCacheStrategy(DiskCacheStrategy.ALL)

.placeholder(R.drawable.ic_default_image))

.into(mIvAvatar);

你可能感兴趣的:(2018-06-19Glide使用)