Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loopj/android-smart-image-view
Android ImageView replacement which allows image loading from URLs or contact address book, with caching
https://github.com/loopj/android-smart-image-view
Last synced: 25 days ago
JSON representation
Android ImageView replacement which allows image loading from URLs or contact address book, with caching
- Host: GitHub
- URL: https://github.com/loopj/android-smart-image-view
- Owner: loopj
- Created: 2011-03-11T04:23:12.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-08-03T16:59:05.000Z (over 1 year ago)
- Last Synced: 2024-10-01T13:03:47.007Z (about 1 month ago)
- Language: Java
- Homepage: http://loopj.com/android-smart-image-view/
- Size: 17.6 KB
- Stars: 1,294
- Watchers: 118
- Forks: 510
- Open Issues: 49
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android-person - android-smart-image-view
README
# Android Smart Image View
## Overview
`SmartImageView` is a drop-in replacement for Android's standard `ImageView` which additionally allows images to be loaded from URLs or the user's contact address book. Images are cached to memory and to disk for super fast loading.
## Features
- Drop-in replacement for `ImageView`
- Load images from a **URL**
- Load images from the phone's **contact address book**
- Asynchronous loading of images, loading happens **outside the UI thread**
- Images are **cached** to memory and to disk for **super fast loading**
- `SmartImage` class is easily **extendable** to load from other sources## Installation & Basic Usage
Download the latest .jar file from github and place it in your Android app's `libs/` folder.
Add a `SmartImageView` to your activity's xml layout:
```xml
```
Get a reference to the layout's `SmartImageView`:
```java
SmartImageView myImage = (SmartImageView) this.findViewById(R.id.my_image);
```Load an image into the view from a URL:
```java
myImage.setImageUrl("http://www.awesomeimages.com/myawesomeimage.jpg");
```Load an image into the view from the phone's contact address book:
```java
myImage.setImageContact(contactAddressBookId);
```## Reporting Bugs or Feature Requests
Please report any bugs or feature requests on the github issues page for this project here:
## License
The Android Smart Image View is released under the Android-friendly Apache License, Version 2.0. Read the full license here: