当前位置: 移动技术网 > IT编程>移动开发>Android > android开发教程之glide图片加载

android开发教程之glide图片加载

2017年12月27日  | 移动技术网IT编程  | 我要评论

黑道教父抵死缠爱,武昌火车站时刻表,97ndd

//使用glide一行代码加载图片

一:添加依赖

[java]view plaincopy

compile'com.github.bumptech.glide:glide:3.7.0'[java]view plaincopy

android:id="@+id/imageview"

android:layout_width="match_parent"

android:layout_height="match_parent"/>

三:代码

this代表上下文 url网络地址 imageview控件id

[java]view plaincopy

Glide.with(this).load(url).into(imageView);

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网