fresco icon indicating copy to clipboard operation
fresco copied to clipboard

i want use ControllerListener Listener image download progress..

Open terryyhl opened this issue 11 years ago • 2 comments

how can i use ?

terryyhl avatar Apr 14 '15 07:04 terryyhl

Can you explain more what you want to do?

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

tyronen avatar Apr 14 '15 22:04 tyronen

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

plamenko avatar Apr 16 '15 00:04 plamenko