Android Universal-iamge-loader's Displayimageoptions

Source: Internet
Author: User

Now that you know Android in order to avoid oom, in the picture processing, you can use the Open source framework Universal-iamge-loader. This article is just a brief introduction to the meanings of some of the methods under which Displayimageoptions, as follows:

Set the picture that the picture displays during the download

Showstubimage (R.drawable.ic_launcher)

Sets the picture to be displayed when the image URI is empty or wrong

Showimageforemptyuri (R.drawable.ic_empty)

/Set picture to display when error occurred during image loading/decoding

Showimageonfail (R.drawable.ic_error)

Set whether the picture is reset before downloading, reset

Resetviewbeforeloading ()

Sets whether the downloaded picture is slow to exist in memory

Cacheinmemory ()

Sets whether the downloaded picture is slow to exist on the SD card

Cacheondisc ()

Set the decoding type of a picture

Bitmapconfig (Bitmap.Config.RGB_565)

/ /Set the decoding configuration of the picture

Decodingoptions (android.graphics.BitmapFactory.Options decodingoptions)

Set the delay before the picture is downloaded

delaybeforeloading (int delayinmillis)

Set additional content to Imagedownloader

Extrafordownloader (Object extra)

Set up bitmap before adding a picture to the cache

Preprocessor (Bitmapprocessor preprocessor)

Set the picture before display, this picture remains in the cache after display

Postprocessor (Bitmapprocessor postprocessor)

Set how images are displayed in an encoded manner

Imagescaletype (Imagescaletype imagescaletype)


As for the specific use, you can search the online posts by yourself.

Some references are as follows: http://www.eoeandroid.com/thread-333220-1-1.html

Http://www.cnblogs.com/kissazi2/p/3901235.html

http://blog.csdn.net/vipzjyno1/article/details/23206387


Reprint Please specify source: http://blog.csdn.net/android_jiangjun/article/details/39231439

Android Universal-iamge-loader's Displayimageoptions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.