1

Image is not loading when using a placeholder.

Glide code

Glide.with(mContext)
            .load(uri)
            .placeholder(R.drawable.placeholder)
            .into(view);

Picasso code

Picasso.with(mContext)
            .load(uri)
            .placeholder(R.drawable.placeholder)
            .into(view);

I am using an adapter to load multiple image.

  1. using Picasso placeholder is not changing to original image.
  2. using Glide placeholder is changing but original image is not coming.

But if I slide the adapter or refreshing then it will come.

Zoe
  • 27,060
  • 21
  • 118
  • 148
noobEinstien
  • 3,147
  • 4
  • 24
  • 42

1 Answers1

-1

Try in this way..

Picasso.with(mContext)
            .placeholder(R.drawable.placeholder)
            .load(uri)
            .into(view);

placeholder should be before the image is loaded.

Sunil P
  • 3,698
  • 3
  • 13
  • 20