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