我使用适配器来加载大量带有支架的图像,当我滚动图像时出现问题,并且NetworkImageView
支架不再显示。
在适配器中我使用setImageUrl
来设置图像内容
holderElementGridView.drawable2.setImageUrl(url,VolleySingleton.getInstance(mContext).getImageLoader());
和xml:
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_gravity="center"
android:layout_weight="100"
android:layout_marginRight="5dp"
android:layout_marginLeft="5dp"
android:src="@drawable/iphone_feuilledematch_imagebackground" >
</com.android.volley.toolbox.NetworkImageView>
当凌空下载图片时,iphone_feuilledematch_imagebackground
被禁用。
如何在凌空完成drawable下载之前保留默认的可绘制源?