作者的github地址
GitHub:https://github.com/bumptech/glide
1.添加依赖
|
|
2.添加网络权限
|
|
3.使用
简单使用12345@Override public void onCreate(Bundle savedInstanceState) { ImageView imageView = (ImageView)findViewById(R.id.my_image_view); GlideApp.with(this).load("https://www.baidu.com/img/bd_logo1.png").into(imageView);}
.with(this) 上下文
.load() 加载的图片地址
.into() 加载到那个控件上