我使用适配器加载了很多带有支架的图像,当我滚动图像时,问题正在加载并且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
凌空下载图像时禁用。
在 volley 完成 drawable 的下载之前,如何保留默认的 drawable 源?