repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
}
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
Glide
.with(myFragment)
.load(url)
.centerCrop()
.placeholder(R.drawable.loading_spinner)
.into(myImageView);
Glide.with(context)
.load("http://via.placeholder.com/300.png")
.into(ivImg);
Glide.with(context)
.load("http://via.placeholder.com/300.png")
.into(ivImg);
Glide.with(context)
.load("http://via.placeholder.com/300.png")
.into(ivImg);
Download latest gradle dependency from website link :
https://github.com/bumptech/glide
Use Glide like this way
Glide
.with(myFragment)
.load(url)
.centerCrop()
.placeholder(R.drawable.loading_spinner)
.into(myImageView);
Glide.with(context)
.load("http://via.placeholder.com/300.png")
.into(ivImg);
Glide.with(context)
.load("http://via.placeholder.com/300.png")
.into(ivImg);
Glide.with(context)
.load("http://via.placeholder.com/300.png")
.into(ivImg);
Glide.with(context)
.load("http://via.placeholder.com/300.png")
.into(ivImg);
compile('com.github.bumptech.glide:glide:4.4.0@aar') {
transitive = true;
}