GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Home
  • Hardware Bitmaps
  • Resource Reuse
  • Caching
  • Migrating from v3 to v4
  • Generated API
  • Configuration
  • Transitions
  • Debugging
  • Targets
  • Transformations
  • Placeholders
  • Options
  • Getting Started

This view

  • Original page
  • New address

GeezerVison is showing bumptech.github.io — Glide v4 : Samples

Glide v4 Fast and efficient image loading for Android - 中文版 - Edit this page

  • Home
  • Documentation
  • Hardware Bitmaps
  • Resource Reuse
  • Caching
  • Migrating from v3 to v4
  • Generated API
  • Configuration
  • Transitions
  • Debugging
  • Targets
  • Transformations
  • Placeholders
  • Options
  • Getting Started
  • Download & Setup
  • Tutorial
  • Writing a custom ModelLoader
  • Test cases for issues
  • Reference
  • Javadocs
  • Samples
  • Integration Libraries
  • Compose
  • AVIF
  • Cronet
  • RecyclerView
  • Volley
  • OkHttp3
  • About
  • Developers
  • Snapshots
  • Contributing
  • Open Source Licenses

Samples

Sample Apps

Glide includes a number of sample apps in the samples/ directory that demonstrate how to load images with Glide in a variety of contexts.

The sample apps are all built with gradle, so most relevant code will be under sample_app_name/src/main.

Sample apps can be built by:

  1. Clone the Glide repo from GitHub.
  2. Run: ./gradlew :samples:<sample_name>:build

If you want to automatically install and open the sample app you can use:

./gradlew :samples:<sample_name>:run

Flickr

The Flickr app allows users to search for images matching keywords using Flickr’s public API, and then downloads the first few hundred hits and displays them in a couple of different sizes.

  • Source Code
  • Build with: ./gradlew :samples:flickr:run
Gallery

The Gallery app displays images and video stills from on the device in a horizontally scrolling RecyclerView.

  • Source Code
  • Build with: ./gradlew :samples:gallery:run
Giphy

The Giphy app downloas metadata for and popular animated GIFs using Giphy’s public API and displays them in a vertical list.

  • Source Code
  • Build with: ./gradlew :samples:giphy:run
SVG

The SVG sample app demonstrates how you can use Glide’s flexible decoding pipeline to decode custom resource types. The SVG app loads SVG data from resources and over the network, and uses a custom decoder and drawable to display the SVG with Glide.

  • Source Code
  • Build with: ./gradlew :samples:svg:run
Imgur

The Imgur sample app retrieves a list of animated and non-animated images from Imgur and displays them in a vertically scrolling list.

  • Source Code
  • Build with: ./gradlew :samples:imgur:run

Open Source Apps

Google I/O

The 2014 Google I/O app used Glide to display images in a variety of scenarios. The Google I/O app is available on GitHub. In addition, the I/O team wrote a number of useful blog posts, including one on image loading, which may be useful. For more posts, see their Readme.md.

  • Source Code
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.