| | |
| | | .placeholder(R.mipmap.default_head) |
| | | .apply(RequestOptions.circleCropTransform()) |
| | | .diskCacheStrategy(DiskCacheStrategy.RESOURCE); |
| | | /** |
| | | * 默认应用图标头像 |
| | | */ |
| | | public static RequestOptions defaultCircleIcon = new RequestOptions() |
| | | .circleCrop() |
| | | .error(R.mipmap.ic_launcher) |
| | | .placeholder(R.mipmap.ic_launcher) |
| | | .apply(RequestOptions.circleCropTransform()) |
| | | .diskCacheStrategy(DiskCacheStrategy.RESOURCE); |
| | | |
| | | /** |
| | | * |
| | |
| | | .into(imageView); |
| | | } |
| | | |
| | | public static void loady2(Context context, String url, ImageView imageView) { |
| | | Glide.with(context) |
| | | .load(url) |
| | | .apply(defaultCircleIcon) |
| | | .into(imageView); |
| | | } |
| | | |
| | | |
| | | public static void loadBitMap(Context context, String url, ImageView imageView) { |
| | | loadBitMap(context, url, imageView, 4,false); |