图片加载的功能
Glide.with(context)
.load(src)
.into(iv_full_image)
复杂的功能可以使用
Glide.with(this)
.load(url)
.placeholder(R.drawable.loading)
.error(R.drawable.error)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.into(imageView);
repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
}
具体的用法可以看郭霖的博客
https://blog.youkuaiyun.com/guolin_blog/article/details/53759439