-2

Here using an adapter to load the images in the RecyclerView and here is the code I am using to load the Image from the URL

Picasso.with(context)
.load("IMAGE URL")
.placeholder(R.drawable.placeholder)  
.error(R.drawable.error)     
.into(holder.stud_photo);
Mohammed Atif
  • 4,383
  • 7
  • 28
  • 57
Aysha Ashraf
  • 67
  • 1
  • 1
  • 3

1 Answers1

1

you can implement this for Picasso

Picasso.with(context)
                .load(foodItem.getImageUrl())
                .memoryPolicy(MemoryPolicy.NO_CACHE )
                .networkPolicy(NetworkPolicy.NO_CACHE)
                .error(R.drawable.logosign)
                .noFade()
                .into(holder.productImage);

compile 'com.squareup.picasso:picasso:2.5.2'