Android NetworkImageView disappear in RecyclerView after Scrolling list (Volley)

早过忘川 提交于 2019-12-11 04:23:42

问题


Am using NetworkImageView with volley library and RecyclerView. After scrolling list some images disappear from the NetworkImageView. I am writing my code in the onBindViewHolder() method inside the Adapter class. And code is given below:

pvh1.imgmovie.setDefaultImageResId(R.drawable.banner);
pvh1.imgmovie.setImageUrl("image_url", imageLoader);`

回答1:


I do not know NetworkImageView but I advise you to use Picasso to download images from the web, it's great! Use it with a normal ImageView!

Picasso.with(context).load(image_url).into(image_view);

https://github.com/square/picasso



来源:https://stackoverflow.com/questions/40791904/android-networkimageview-disappear-in-recyclerview-after-scrolling-list-volley

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!