Simplecommand framework imageloader API details (III)

The imageloader API is described in detail as follows

There are several different constructors in imageloader:

Stop the imageloader, usually when the activity stops or when the task ends, call this method to close it

Cancel the request previously displayed on ImageView

Load the pictures in the local drawable folder and the network pictures respectively

Set the preview image when imageloader downloads pictures

Pictures displayed when downloading pictures fails

The above three methods are

1 add tag tag when downloading pictures 2 pause the download task of tag tag 3 resume the download task of tag tag

Set the callback of download completion for imageloader, including onsuccess and onfailed methods

Set the corresponding properties when Picasso downloads pictures respectively. You can refer to the scaletype property of ImageView

The into method calls the internal run method and starts the download task. This method needs to be invoked after all of the above API.

Framework GitHub address: simplecommand framework

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>