volley请求网络图片
2016-03-10 20:04
288 查看
volley做了简单的封装。
如果觉得图片显示的太小,在布局文件里的设置一下。
在image_items.xml里面最下方。
<ImageView
android:scaleType="centerCrop"
android:id="@+id/imageview"
android:layout_width="match_parent"
android:layout_height="200dp"
android:paddingTop="60dp"
android:layout_below="@+id/linearLayout"
android:background="@drawable/picture_down"/>
其中 android:scaleType="centerCrop"是后加的,但是如果下载的图片过小,我们在进行处理的话,会失真。
代码不多,话不多说,自己下载去。
http://pan.baidu.com/s/1bnSCY8f
如果觉得图片显示的太小,在布局文件里的设置一下。
在image_items.xml里面最下方。
<ImageView
android:scaleType="centerCrop"
android:id="@+id/imageview"
android:layout_width="match_parent"
android:layout_height="200dp"
android:paddingTop="60dp"
android:layout_below="@+id/linearLayout"
android:background="@drawable/picture_down"/>
其中 android:scaleType="centerCrop"是后加的,但是如果下载的图片过小,我们在进行处理的话,会失真。
代码不多,话不多说,自己下载去。
http://pan.baidu.com/s/1bnSCY8f
相关文章推荐
- volley请求网络图片
- 计算机网络总结
- angularjs $http 提交post问题
- 【集训队互测2013】供电网络
- 理解tcp关闭连接中的time_wait状态
- 网络实时网络监控工具iftop
- TCP/IP协议 (需要协议时进行查询)
- 计算机网络之数据链路层
- HttpClient4.5教程-第二章-连接管理
- iOS通过UIApplication获取网络状态
- Http_load的安装和使用
- linux下常见网络故障的处理思路
- TCP协议回顾
- http协议post数据标准格式
- TCP保活(TCP keepalive)
- httpclient 学习备忘
- HTTP协议的GET请求和POST请求
- Linux tcpdump命令详解
- Android网络请求框架之Retrofit(三)
- Scala Playframework 访问HTTPS网站证书错误解决方案