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