Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

Android-Universal-Image-Loader

> 编程语言
Open source

Powerful and flexible library for loading, caching and displaying images on Android.

16.8K stars0 likes0 views
WebsiteGitHub

About

Powerful and flexible library for loading, caching and displaying images on Android.

Universal Image Loader

The great ancestor of modern image-loading libraries :)
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.

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

  • Multi-thread 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 4.1+ support

Downloads

  • universal-image-loader-1.9.5.jar

Documentation

  • Quick Setup
  • Configuration
  • Display Options
  • Useful Info - Read it before asking a question
  • User Support - Read it before creating new issue
  • Sample project - Learn it to understand the right way of library usage
  • ChangeLog - Info about API changes is here

Usage

Dependency

implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

Acceptable URIs examples

java
"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

java
ImageLoader imageLoader = ImageLoader.getInstance(); // Get singleton instance
java
// Load image, decode it to Bitmap and display Bitmap in ImageView (or any other view 
//	which implements ImageAware interface)
imageLoader.displayImage(imageUri, imageView);
java
// 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
	}
});
java
// Load image, decode it to Bitmap and return Bitmap synchronously
Bitmap bmp = imageLoader.loadImageSync(imageUri);

Complete

…
java
// 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
	}
});
java
// 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

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 :)

  • PayPal - nostra.uil[at]gmail[dot]com

Alternative libraries

  • Fresco
  • Glide
  • Picasso
  • Volley : ImageLoader

Issues· 460 open

View all issuesOpen on GitHub
  • #1412

    تمام فیلم های خودمو در برنامه hidef گذاشتم بعد سه روز برگشتم ببینم هست دیدم همش پاک شده البته 3سال از موضوع گذشته هرکاری کردم بر نگشته خیلی مهمه برام

    Updated Jul 18, 2026
  • #1408

    80747924

    Updated Jun 16, 2025
  • #1407

    Red

    Updated Jun 16, 2025
  • #1403

    Android

    Updated Nov 26, 2024
  • #1404

    Maybe you can try again for this same content. The issue from your screenshot looks like the network issue from your place (your last mile) to Kingsoft Cloud Edge. I have tried it on my end (Beijing), it can be downloaded easily with full content in a couple mins.

    Updated Apr 19, 2024
  • #1402

    Maria soledad corrales garcia

    Updated Mar 16, 2024
  • #1401

    Android 13

    Updated Feb 23, 2024
  • #1400

    My-pach-1

    Updated Feb 22, 2024
  • #1399

    Output from the latest changes

    Updated Oct 16, 2023
  • #1388

    root Pull permissions

    Updated Sep 8, 2023

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言