问题
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