Active Resources
Checks if image is displayed in another view.
Automatic release
Resources are released automatically when reference count reaches zero.
Bitmap Pool
Reusable bitmap pool to reduce garbage collection.
Cache Invalidation
How to invalidate cached entries.
clear()
Cancel pending loads and release resources.
Custom Disk Cache
Write your own DiskCache implementation.
Dalvik GC optimization
Avoids GC_FOR_ALLOC on Dalvik devices by reusing moderate to large resources.
Disk Cache
Disk cache with configurable size and location.
Error
Shown when a request permanently fails.
Fallback
Shown when the requested url/model is null.
Fluent API
Simple fluent API for single-line image requests.
Generated API
Annotation processor generates a fluent API for custom components.
Integration Libraries
Support for integration libraries like OkHttp, Volley, etc.
into(ImageView)
Helper method that wraps an ImageView in an ImageViewTarget.
into(Target)
Specify a Target to receive the request results.
Memory Cache
Configurable memory cache with LRU eviction and size calculation based on device properties.
Only Retrieve From Cache
Load fails if image not in cache.
Permissive reuse
Glide reuses resources opportunistically but does not require callers to recycle after each request.
Placeholder
Shown while a request is in progress.
Reference counting
Glide keeps a reference count for each resource to determine when it is safe to reuse.
Resource reuse benefits
Reusing resources reduces memory allocations and GC overhead, preventing jank.
Skip Disk Cache
Skip disk cache using DiskCacheStrategy.NONE.
Skip Memory Cache
Skip memory cache for a request.