Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Glide.with(holder.icon.getContext())
- .load(imageUrl)
- .diskCacheStrategy(DiskCacheStrategy.ALL)
- .centerCrop()
- .into(new GlideDrawableImageViewTarget(holder.icon) {
- @Override
- public void onLoadFailed(Exception e, Drawable errorDrawable) {
- super.onLoadFailed(e, errorDrawable);
- Glide.clear(holder.icon);
- holder.icon.setVisibility(View.GONE);
- }
- });
Add Comment
Please, Sign In to add comment