'Glide 4.13.0 : thumbnail(float) is deprecated
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.
Solution 1:[1]
You can use sizeMultiplier instead of thumbnail as below;
Useful for loading thumbnails or trying to avoid loading huge resources (particularly Bitmaps on devices with overly dense screens.
Glide.with(context)
.load(products[position].imageSource)
.sizeMultiplier(0.6f)
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(holder.rowImage)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ahmet B. |

