Listener after onResourceReady?
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
The only listener I know I can attach is:
``` java
Glide.with(this)
.load(uri)
.listener(new RequestListener() {
@Override public boolean onException(Exception e, Uri model, Target target, boolean isFirstResource) {
return false;
}
@Override public boolean onResourceReady(GlideDrawable resource, Uri model, Target target, boolean isFromMemoryCache, boolean isFirstResource) {
// easy
return false;
// impossible?
}
})
.into(imageView)
;
```
**The `// easy` one**: `target.onResourceReady(resource, ???)` has not been called yet, I don't want to handle it. I like how Glide handles this for me (`return false`).
**The `// impossible` one**: I want to get notified when the `target` already has the `resource`, or better yet when the animation completed and the resource has settled in the target.
Is there any way to work around this and keep the animations?
Contributor guide
Assessment
This issue has not been assessed yet.