fresco README

The project's README from github.com/facebook/fresco. As one markdown file: README.md.

Fresco

Fresco Logo

Build Status License

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:

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.7.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.

fresco (facebook/fresco)

Searching Database…

17.2K ·GitHub
这是什么?Fresco 是一个 Android 库,用于加载和显示图片,包括来自网络、本地存储和本地资源的图片,并管理这些图片占用的内存。
这是一个我要添加到应用中的库,还是一个独立应用?它是一个需要集成到你自己的 Android 应用中的库,而不是独立应用。
我该如何把它添加到我的项目中?如果你使用 Gradle 构建,就在 build.gradle 文件的 dependencies 部分添加 Fresco 的依赖行。
它需要哪些 Android 版本?Fresco 支持 Android 2.3(Gingerbread)及更高版本。
在所有 Android 版本上,它的内存处理方式都一样吗?在 Android 4.x 及更低版本上,它会使用一块特殊的内存区域(ashmem)来避免 OutOfMemoryError;在较新的 Android 版本上,行为有所不同,因为那里并不那么需要这种特殊处理。
它支持动画图片吗?支持,Fresco 可以显示动画 GIF 和 WebP,也支持渐进式 JPEG 的流式加载。
缓存是如何工作的?Fresco 有两级缓存:一级在内存中,另一级在内部存储中。
我能自定义图片的加载和显示方式吗?可以,Fresco 提供了丰富的图片加载和显示自定义选项。
在哪里可以找到完整文档?完整文档可在 Fresco 官网查看,提供英文和中文两个版本。
Creator
facebook
Size
79.4 MB
Stars
17.2K
Age
11y
Commits · 90 Days