Android ApplicationAndroid工具类 ####加载圆形图片: 123456RequestOptions mRequestOptions = RequestOptions.circleCropTransform().diskCacheStrategy(DiskCacheStrategy.NONE)//不做磁盘缓存.skipMemoryCache(true);//不做内存缓存.error(R.mipmap.icon_store_default_head)//错误图片.placeholder(R.mipmap.icon_store_default_head)//预加载图片Glide.with(mContext).load(userInfo.getImage()).apply(mRequestOptions).into(mUserIcon); ####加载圆角图片: 123456//设置图片圆角角度RoundedCorners roundedCorners= new RoundedCorners(6);//px//通过RequestOptions扩展功能,override:采样率,因为ImageView就这么大,可以压缩图片,降低内存消耗RequestOptions options=RequestOptions.bitmapTransform(roundedCorners).override(300, 300);Glide.with(context).load(files.getFilePath()).apply(options).into(mUserPhoto);