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

i want use ControllerListener Listener image download progress.. #144

Closed
terryyhl opened this issue Apr 14, 2015 · 2 comments
Closed

i want use ControllerListener Listener image download progress.. #144

terryyhl opened this issue Apr 14, 2015 · 2 comments

Comments

@terryyhl
Copy link

how can i use ?

@tyronen
Copy link
Contributor

tyronen commented Apr 14, 2015

Can you explain more what you want to do?

http://frescolib.org/docs/listening-download-events.html shows how to listen to download events.

@plamenko
Copy link
Contributor

If you want to display the download progress, you should set some progress bar drawable to the hierarchy.
See example usage:
https://github.com/facebook/fresco/blob/53e1317d47e0e33d9927740ad4974cc479d8cc2a/sample/src/main/java/com/facebook/fresco/sample/adapters/FrescoAdapter.java

And example implementation of a progress bar drawable (onLevelChange is the important method):
https://github.com/facebook/fresco/blob/53e1317d47e0e33d9927740ad4974cc479d8cc2a/drawee/src/main/java/com/facebook/drawee/drawable/ProgressBarDrawable.java

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

No branches or pull requests

3 participants