Skip to content Skip to sidebar Skip to footer

How To Download A Resized Version Of An Image With Glide

I have a recycler view which consists of a grid of images. This is the code I sue to load said images. @Override public void onBindViewHolder(ShowHolder holder, int positio

Solution 1:

Replace with this:

Glide.with(getActivity()).load(imageUrl)

.override(600, 200) // resizes the image to these dimensions (in pixel)

.centerCrop() // this cropping technique scales the image

.into(holder.mImageView);

Post a Comment for "How To Download A Resized Version Of An Image With Glide"