Glide是一款由Bump Technologies开发的图片加载框架,可以使我们在Android平台上以极度简单的方式加载和展示图片,,只需要一行代码就可以显示图片
一:添加依赖
compile 'com.github.bumptech.glide:glide:3.7.0'
二:布局
<ImageView
android:id="@+id/imageview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
三:代码
this代表上下文 url网络地址 imageview控件id
Glide.with(this).load(url).into(imageView);