question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Glide .placeholder() the animation does not work

See original GitHub issue

Hi, I have a CircleImageView

image = (CircleImageView) findViewById(R.id.imager);

when i try to load an image, the placeHolder animation not wok. (I have already tested with ImageView and it works perfectly)

Glide.with(this) .load(picture) .asBitmap() .placeholder(R.drawable.progress_animation) .centerCrop() .into(image);

What do you advise me to do for this problem? Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
hdodenhofcommented, Jan 20, 2017

Ah, sorry, I see - unfortunately there’s no way to make this work. This library creates a Bitmap from the Drawable supplied using setImage*() to apply the rounding transformation. That Bitmap is basically a snapshot and does not get updated when the placeholder Drawable runs its animation.

You could solve this by using a regular ImageView together with a CropCircleTransformation from https://github.com/wasabeef/glide-transformations instead of this library.

0reactions
hdodenhofcommented, Jan 21, 2017

Sweet, happy to help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

placeholder() not working when I use onResourceReady #2097
Glide Version 3.5.2: When I use onResourceReady(), my placeholder animation doesn't show up. Following is my code which is NOT working: ...
Read more >
Glide not loading real image and stuck with placeholder
Try to add .dontAnimate() It caused by TransitionDrawable too and it seems so because after scroll there's no animation because it's cached.
Read more >
Glide — Placeholders & Fade Animations - Future Studio
I don't want to use Glide.load().placeholder() because it causes 2 times more memory consumption for placeholders as they are loaded twice.
Read more >
Placeholders - Glide v4 - GitHub Pages
When a request completes successfully, the placeholder is replaced with the requested resource. If the requested resource is loaded from memory, the placeholder...
Read more >
Glide Tutorial — Placeholders & Crossfade - YouTube
Future Studio is helping 5,000+ users daily to solve Android and Node.js problems with 330+ written tutorials and videos.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found