2

I use com.koushikdutta.ion.Ion for download image to ImageView:

void ChangeImage()
{
  Ion.with(imageView).error(R.drawable.request_error).load(nextHttpUrl);
}

When begins loading next image, the current image disappears and while the next request is loading, ImageView does not contain any images (or, if I add .placeholder() - contains a picture from resources).

How I leave as placheholder current image? Or any other way that the current image on ImageView is changed only after the complete download the next?

1 Answers1

1

Try .crossfade(), that will crossfade from the existing image.

SimplePi
  • 95
  • 1
  • 4
  • 15
koush
  • 2,972
  • 28
  • 31