Note: the samples are licensed for non-commercial or evaluation purposes only, not the BSD license used for Fresco itself.
Fresco’s GitHub repository contains several samples to demonstrate how to use Fresco in your apps.
The samples are available in source form only. Follow the build instructions to set up your dev environment to build and run them.
The Showcase app
The Showcase App demonstrates various features and allows to customize parameters to show their effect. It includes samples for Drawee and for the image pipeline. Furthermore, it showcases how to use both built-in and custom image formats.
The zoomable library
The zoomable library features a
ZoomableDraweeView class that supports gestures such as pinch-to-zoom and panning of a Drawee image.
The comparison app
Fresco allows you to also compare its performance with OkHttp as its network layer. You can also see the performance of Drawee running over Volley instead of Fresco’s image pipeline.
The app offers you a choice of images from your local camera or from the Internet. The network images come from Imgur.
You can build, install, and run a controlled test of any combination of loaders using the run_comparison.py script. The following command will run them all on a connected ARM v7 device:
./run_comparison.py -c armeabi-v7a
The round app
The round app shows the same image scaled in several different ways, with and without a circle applied.