MCPcopy
hub / github.com/nostra13/Android-Universal-Image-Loader

github.com/nostra13/Android-Universal-Image-Loader @v1.9.5 sqlite

repository ↗ · DeepWiki ↗ · release v1.9.5 ↗
856 symbols 1,941 edges 88 files 430 documented · 50%
README

Logo Universal Image Loader Build Status Maven Central

Android library #1 on GitHub. UIL aims to provide a powerful, flexible and highly customizable instrument for image loading, caching and displaying. It provides a lot of configuration options and good control over the image loading and caching process.

Screenshot

Project News

  • Really have no time for development... so I stop project maintaining since Nov 27 :(
  • UIL [27.11.2011 - 27.11.2015]
  • Thanks to all developers for your support :)

Features

  • Multithread image loading (async or sync)
  • Wide customization of ImageLoader's configuration (thread executors, downloader, decoder, memory and disk cache, display image options, etc.)
  • Many customization options for every display image call (stub images, caching switch, decoding options, Bitmap processing and displaying, etc.)
  • Image caching in memory and/or on disk (device's file system or SD card)
  • Listening loading process (including downloading progress)

Android 2.0+ support

Downloads

Documentation

Usage

Acceptable URIs examples

"http://site.com/image.png" // from Web
"file:///mnt/sdcard/image.png" // from SD card
"file:///mnt/sdcard/video.mp4" // from SD card (video thumbnail)
"content://media/external/images/media/13" // from content provider
"content://media/external/video/media/13" // from content provider (video thumbnail)
"assets://image.png" // from assets
"drawable://" + R.drawable.img // from drawables (non-9patch images)

NOTE: Use drawable:// only if you really need it! Always consider the native way to load drawables - ImageView.setImageResource(...) instead of using of ImageLoader.

Simple

ImageLoader imageLoader = ImageLoader.getInstance(); // Get singleton instance
// Load image, decode it to Bitmap and display Bitmap in ImageView (or any other view 
//  which implements ImageAware interface)
imageLoader.displayImage(imageUri, imageView);
// Load image, decode it to Bitmap and return Bitmap to callback
imageLoader.loadImage(imageUri, new SimpleImageLoadingListener() {
    @Override
    public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
        // Do whatever you want with Bitmap
    }
});
// Load image, decode it to Bitmap and return Bitmap synchronously
Bitmap bmp = imageLoader.loadImageSync(imageUri);

Complete

// Load image, decode it to Bitmap and display Bitmap in ImageView (or any other view 
//  which implements ImageAware interface)
imageLoader.displayImage(imageUri, imageView, options, new ImageLoadingListener() {
    @Override
    public void onLoadingStarted(String imageUri, View view) {
        ...
    }
    @Override
    public void onLoadingFailed(String imageUri, View view, FailReason failReason) {
        ...
    }
    @Override
    public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
        ...
    }
    @Override
    public void onLoadingCancelled(String imageUri, View view) {
        ...
    }
}, new ImageLoadingProgressListener() {
    @Override
    public void onProgressUpdate(String imageUri, View view, int current, int total) {
        ...
    }
});
// Load image, decode it to Bitmap and return Bitmap to callback
ImageSize targetSize = new ImageSize(80, 50); // result Bitmap will be fit to this size
imageLoader.loadImage(imageUri, targetSize, options, new SimpleImageLoadingListener() {
    @Override
    public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
        // Do whatever you want with Bitmap
    }
});
// Load image, decode it to Bitmap and return Bitmap synchronously
ImageSize targetSize = new ImageSize(80, 50); // result Bitmap will be fit to this size
Bitmap bmp = imageLoader.loadImageSync(imageUri, targetSize, options);

Load & Display Task Flow

Task Flow

Applications using Universal Image Loader

MediaHouse, UPnP/DLNA Browser | Prezzi Benzina (AndroidFuel) | ROM Toolbox Lite, Pro | Stadium Astro | Chef Astro | Sporee - Live Soccer Scores | EyeEm - Photo Filter Camera | Topface - meeting is easy | reddit is fun | Diaro - personal diary | Meetup | Vingle - Magazines by Fans | Anime Music Radio | WidgetLocker Theme Viewer | ShortBlogger for Tumblr | SnapDish Food Camera | Twitch | TVShow Time, TV show guide | Planning Center Services | Lapse It | My Cloud Player for SoundCloud | SoundTracking | LoopLR Social Video | Hír24 | Immobilien Scout24 | Lieferheld - Pizza Pasta Sushi | Loocator: free sex datings | 벨팡-개편 이벤트,컬러링,벨소리,무료,최신가요,링투유 | Streambels AirPlay/DLNA Player | Ship Mate - All Cruise Lines | Disk & Storage Analyzer | 糗事百科 | Balance BY | Anti Theft Alarm - Security | XiiaLive™ - Internet Radio | Bandsintown Concerts | Save As Web Archive | MCPE STORE -Download MCPE file | All-In-One Toolbox (29 Tools) | Zaim | Calculator Plus Free | Truedialer by Truecaller | DoggCatcher Podcast Player | PingTools Network Utilities | The Traveler | minube: travel photo album | Wear Store for Wear Apps | Cast Store for Chromecast Apps | WebMoney Keeper

Donation

You can support the project and thank the author for his hard work :)

Click here to lend your support to: Universal Image Loader for Android and make a donation at pledgie.com ! Flattr this * PayPal - nostra.uil[at]gmail[dot]com

Alternative libraries

License

Copyright 2011-2015 Sergey Tarasevich

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Extension points exported contracts — how you extend this code

MemoryCache (Interface)
Interface for memory cache @author Sergey Tarasevich (nostra13[at]gmail[dot]com) @since 1.9.2 [8 implementers]
library/src/main/java/com/nostra13/universalimageloader/cache/memory/MemoryCache.java
BitmapDisplayer (Interface)
Displays Bitmap in com.nostra13.universalimageloader.core.imageaware.ImageAware. Implementations can app [11 implementers]
library/src/main/java/com/nostra13/universalimageloader/core/display/BitmapDisplayer.java
ImageDownloader (Interface)
Provides retrieving of InputStream of image by URI. Implementations have to be thread-safe. @author Serge [6 implementers]
library/src/main/java/com/nostra13/universalimageloader/core/download/ImageDownloader.java
DiskCache (Interface)
Interface for disk cache @author Sergey Tarasevich (nostra13[at]gmail[dot]com) @since 1.9.2 [4 implementers]
library/src/main/java/com/nostra13/universalimageloader/cache/disc/DiskCache.java
FileNameGenerator (Interface)
Generates names for files at disk cache @author Sergey Tarasevich (nostra13[at]gmail[dot]com) @since 1.3.1 [4 implementers]
library/src/main/java/com/nostra13/universalimageloader/cache/disc/naming/FileNameGenerator.java

Core symbols most depended-on inside this repo

get
called by 33
library/src/main/java/com/nostra13/universalimageloader/cache/disc/DiskCache.java
d
called by 28
library/src/main/java/com/nostra13/universalimageloader/utils/L.java
getHeight
called by 27
library/src/main/java/com/nostra13/universalimageloader/core/imageaware/ImageAware.java
remove
called by 24
library/src/main/java/com/nostra13/universalimageloader/cache/memory/MemoryCache.java
write
called by 22
library/src/main/java/com/nostra13/universalimageloader/cache/disc/impl/ext/DiskLruCache.java
w
called by 22
library/src/main/java/com/nostra13/universalimageloader/utils/L.java
e
called by 22
library/src/main/java/com/nostra13/universalimageloader/utils/L.java
getWidth
called by 22
library/src/main/java/com/nostra13/universalimageloader/core/imageaware/ImageAware.java

Shape

Method 733
Class 104
Interface 13
Enum 6

Languages

Java100%

Modules by API surface

library/src/main/java/com/nostra13/universalimageloader/core/assist/deque/LinkedBlockingDeque.java63 symbols
library/src/main/java/com/nostra13/universalimageloader/cache/disc/impl/ext/DiskLruCache.java60 symbols
library/src/main/java/com/nostra13/universalimageloader/core/DisplayImageOptions.java47 symbols
library/src/main/java/com/nostra13/universalimageloader/core/ImageLoaderConfiguration.java38 symbols
library/src/main/java/com/nostra13/universalimageloader/core/ImageLoader.java28 symbols
library/src/main/java/com/nostra13/universalimageloader/core/assist/deque/Deque.java27 symbols
library/src/main/java/com/nostra13/universalimageloader/core/LoadAndDisplayImageTask.java26 symbols
library/src/main/java/com/nostra13/universalimageloader/core/assist/deque/BlockingDeque.java25 symbols
library/src/main/java/com/nostra13/universalimageloader/core/ImageLoaderEngine.java20 symbols
library/src/main/java/com/nostra13/universalimageloader/core/DefaultConfigurationFactory.java17 symbols
library/src/main/java/com/nostra13/universalimageloader/core/download/BaseImageDownloader.java15 symbols
library/src/main/java/com/nostra13/universalimageloader/core/decode/ImageDecodingInfo.java15 symbols

For agents

$ claude mcp add Android-Universal-Image-Loader \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact