Skip to content

Listener after onResourceReady? #275

Open
@TWiStErRob

Description

@TWiStErRob

The only listener I know I can attach is:

Glide.with(this)
     .load(uri)
     .listener(new RequestListener<Uri, GlideDrawable>() {
         @Override public boolean onException(Exception e, Uri model, Target<GlideDrawable> target, boolean isFirstResource) {
             return false;
         }
         @Override public boolean onResourceReady(GlideDrawable resource, Uri model, Target<GlideDrawable> 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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions