Glide .placeholder() the animation does not work
See original GitHub issueHi, 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:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, sorry, I see - unfortunately there’s no way to make this work. This library creates a
Bitmap
from theDrawable
supplied usingsetImage*()
to apply the rounding transformation. ThatBitmap
is basically a snapshot and does not get updated when the placeholderDrawable
runs its animation.You could solve this by using a regular
ImageView
together with aCropCircleTransformation
from https://github.com/wasabeef/glide-transformations instead of this library.Sweet, happy to help!