Fresco an ultra-strong picture loading component first experience

Source: Internet
Author: User

Fresco a super image loading component from Facebook open source, project experience Address: Https://github.com/facebook/fresco

When the company develops the application because the application certainly will involve the picture loading, we must consider the oom as well as the memory occupation question, therefore we basically use the open source image download Library from the third party: Universalimageloader,picasso,glide, Volley and other excellent open source library, struggling with their inability to write better so I have been looking for a better library, until I met the fresco. So here are some notes on how I experienced fresco on Androidstudio, and I'm ready to use it to replace my app's uil on my app, my experience is Mac OS 10.10.2 +androioid Studio 1.3+ android-ndk-r10e

The first step is to configure the NDK environment
Unzip and download the good Ndk.bin
1.chmod a+x Android-ndk-r10c-darwin-x86_64.bin
The path behind the file is stored.
2. Perform/android-ndk-r10c-darwin-x86_64.bin to extract the NDK.

Second step, configure the NDK path in local.properties
Ndk.dir=. /applications/android-ndk/android-ndk-r10e

The third step is to import the downloaded Frescro.demo into the AS.
Demo Address: Https://github.com/liaohuqiu/fresco-demo-for-gradle

Run up to see the picture:

Experience during the discovery of fresco occupied memory than UIL and other third-party libraries in memory occupies a lot less, my phone experience less than 10M, very good to reduce the cause of the picture accounted for too much memory.

For the NDK use and introduction can refer to Http://fresco-cn.org/docs/index.html#_ introduction of very detailed, this is definitely the best Picture loading library Now, familiar with immediately replace the project in use of the UIL.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Fresco an ultra-strong picture loading component first experience

Related Article

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.