I can load image path to imageView using Glide in this code:
GlideApp.with(context)
.load(imagePath)
.diskCacheStrategy(DiskCacheStrategy.ALL)
.transition(withCrossFade())
.into(imageView);
I do not want to load previously registered same path or bitmap from imageView.
==============UPDATE=================
I find this solution (thanks ADM):
Glide automatically performs setTag()
function and when I call imageView.getTag()
function, result is deriving SingleRequest
which has loaded data (imagePath or bitmap).
But I can't access singleRequest model
field, it is a private. How can I take singleRequest model
field? Please help me.