Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i listen to the progress of image's loading #685

Closed
jonyChina162 opened this issue Oct 14, 2015 · 3 comments
Closed

How can i listen to the progress of image's loading #685

jonyChina162 opened this issue Oct 14, 2015 · 3 comments
Labels

Comments

@jonyChina162
Copy link

I am now developing for a new app, and I need to update the progress bar manually when loading an image. However, glide's api seems unfriendly when I try to get the current progress.
In UIL lib, I can easily set an ImageLoadingListener to do this . I try to do the same thing but not modify the glide core lib, but I found it's hard for me.
So in glide lib , how can i listen to the progress of image's loading.
If there's no good answer, i think i had to use rxjava or modify the glide core lib(it's terrible).
Thank goodness for reading my aweful English

@TWiStErRob
Copy link
Collaborator

There isn't an easy way, see #232 (duplicate) for details.

#232 (comment) gave an idea how it may be possible, but the gist he provided seems to only work for one image only. You'll need OkHttp to try that out.

@sjudd sjudd added the question label Oct 15, 2015
@sjudd
Copy link
Collaborator

sjudd commented Oct 15, 2015

Closing as a duplicate of #232

@jonyChina162
Copy link
Author

@TWiStErRob Thanks a lot! what I need is just to track the download progresses of one image, and I have implemented it, many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants