4.0.0
Glide.with(mContext).load("https://www.hzjr.com/"+avatar+"_100.jpg").apply(RequestOptions.circleCropTransform())
// .apply(RequestOptions.fitCenterTransform())//fitcenter与circlecrop一起用会导致设置圆形失效
.apply(RequestOptions.placeholderOf(R.mipmap.user_logo)).apply(RequestOptions.errorOf(R.mipmap.user_logo))
.into(mIvUser);
设置cookie
new GlideUrl(url, new LazyHeaders.Builder().addHeader("Cookie",SpUtil.getInstance().getCookie()).build());
Glide.with(context).load(创建的GldieUrl对象实例)//load是接受model的