fresco
(2) 支持流式,可以类似网页上模糊渐进式显示图片
(3) 对多帧动画图片支持更好,如 Gif、WebP
(4) 更多样的显示,如圆角、进度条、点击重试、自定义对焦点
(5) 更多样的加载,如支持 EXIF、全面支持 WebP
(6) 支持 Android 2.3+
Fresco is a powerful system for displaying images in Android applications.
Fresco takes care of image loading and display, so you don't have to. It will load images from the network, local storage, or local resources, and display a placeholder until the image has arrived. It has two levels of cache; one in memory and another in internal storage.
In Android 4.x and lower, Fresco puts images in a special region of Android memory. This lets your application run faster - and suffer the dreaded OutOfMemoryError
much less often.
Fresco also supports:
- streaming of progressive JPEGs
- display of animated GIFs and WebPs
- extensive customization of image loading and display
- and much more!
Find out more at our website.
Requirements
Fresco can be included in any Android application.
Fresco supports Android 2.3 (Gingerbread) and later.
Using Fresco in your application
If you are building with Gradle, simply add the following line to the dependencies
section of your build.gradle
file:
implementation 'com.facebook.fresco:fresco:3.5.0'
For full details, visit the documentation on our web site, available in English and Chinese:
Join the Fresco community
Please use our issues page to let us know of any problems.
For pull requests, please see the CONTRIBUTING file for information on how to help out. See our documentation for information on how to build from source.
License
Fresco is MIT-licensed.