Just updated Glide to Version 4.13.0 and getting this deprecation warning.
On checking the release page, I found this:
So, what should be the appropriate equivalent to this part of code?
GlideApp.with(holder.itemView.getContext())
.load(sr)
.thumbnail(0.2f)
.placeholder(R.drawable.background_splash)
.into(holder.album);
I think the syntax should be something like this but confused on what to pass to the constructor.
CodePudding user response:
With RequestBuilder
you can configure the request for thumbnail with a multiplier. below is an example
RequestBuilder<Drawable> requestBuilder= Glide.with(this)
.asDrawable().sizeMultiplier(0.1f);
requestBuilder.load(R.drawable.myImage).into(binding.imageView);
its should work . just play around with it to explore more options .