| | |
| | | } |
| | | Glide.with(context) |
| | | .load(url) |
| | | .placeholder(R.mipmap.ic_loading) |
| | | .error(R.mipmap.ic_load_fail).into(imageView); |
| | | .placeholder(R.mipmap.icon_default) |
| | | .error(R.mipmap.icon_default).into(imageView); |
| | | } |
| | | |
| | | @Override |
| | |
| | | Glide.with(context) |
| | | .load(url) |
| | | .override(maxWidth, maxHeight) |
| | | .placeholder(R.mipmap.ic_loading) |
| | | .error(R.mipmap.ic_load_fail).into(imageView); |
| | | .placeholder(R.mipmap.icon_default) |
| | | .error(R.mipmap.icon_default).into(imageView); |
| | | } |
| | | |
| | | /** |
| | |
| | | .override(180, 180) |
| | | .sizeMultiplier(0.5f) |
| | | .transform(new CenterCrop(), new RoundedCorners(8)) |
| | | .placeholder(R.mipmap.ic_loading) |
| | | .error(R.mipmap.ic_load_fail).into(imageView); |
| | | .placeholder(R.mipmap.icon_default) |
| | | .error(R.mipmap.icon_default).into(imageView); |
| | | } |
| | | |
| | | |
| | |
| | | .load(url) |
| | | .override(200, 200) |
| | | .centerCrop() |
| | | .placeholder(R.mipmap.ic_loading) |
| | | .error(R.mipmap.ic_load_fail).into(imageView); |
| | | .placeholder(R.mipmap.icon_default) |
| | | .error(R.mipmap.icon_default).into(imageView); |
| | | } |
| | | |
| | | @Override |