androidandroid-recyclerviewandroid-volleynetworkimageview

Android NetworkImageView disappear in RecyclerView after Scrolling list (Volley)


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);`

Solution

  • 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