Glide: Placeholder not removed when crossfade transition is used

Created on 16 Aug 2017  路  6Comments  路  Source: bumptech/glide

Glide Version: 4.0

Device/Android Version: Google Nexus 5X / Android 8.0

Issue details / Repro steps / Use case background:

The following code

Glide.with(this)
        .load("http://www.fnordware.com/superpng/pngtest8rgba.png")
        .apply(RequestOptions.placeholderOf(R.drawable.placeholder))
        .transition(DrawableTransitionOptions.withCrossFade())
        .into(imageView)

will draw the loaded image over the placeholder image on first load (empty cache). The placeholder image can still be seen below. This only happens when the crossfade transition is used.

See the demo application showcasing this issue. When pressing the "Load image" button for a second time the placeholder image is gone.

Most helpful comment

I'm using glide 4.8.0
& this issue happens to me.
any solution?

All 6 comments

This happens whether or not the ImageView has the placeholder image defined in the layout via android:src.

http://bumptech.github.io/glide/doc/transitions.html#cross-fading-with-placeholders-and-transparent-images

Thanks for pointing me to the appropriate documentation. This behavior is different than in Glide 3.x so maybe it should be mentioned in the migration guide? 馃槈

thanks

I'm using glide 4.8.0
& this issue happens to me.
any solution?

Still open. Same here with glide 4.10.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StefMa picture StefMa  路  3Comments

ghost picture ghost  路  3Comments

MrFuFuFu picture MrFuFuFu  路  3Comments

FooBarBacon picture FooBarBacon  路  3Comments

billy2271 picture billy2271  路  3Comments