I am using Volley NetworkImageView to display images in my Android app. The image endpoint may return HTTP 200 + image or HTTP 303 + redirect URL.
I searched Volley documents but didn't find a way to enable redirection in a NetworkImageView.
Does anyone know how to do it?
Any help is appreciated.
Isn't it better to use a gilde to load photos?
Or use Gradle:
repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
}
use in activity or anything :
Glide
.with(context)
.load(url)
.centerCrop()
.placeholder(R.drawable.imageload)
.into(myImageView);
Just as easily