Using Glide to load a Placeholder from URL to display while loading a GIF (Android)

Viewed 6465

What I have is this:

Glide
            .with(this)
            .load(imageUrl)
            .asGif()
            .diskCacheStrategy(DiskCacheStrategy.SOURCE)
            .placeholder(R.drawable.gif)
            .into(imageView);

But instead, I want to use Glide to load the same gif asBitmap() to use as placeholder for while it's loading the actual gif.

Like if I could do: .placeholder(Glide.with(this).load(imageUrl).asBitmap())

1 Answers
Related