Coder Social home page Coder Social logo

loopj / android-smart-image-view Goto Github PK

View Code? Open in Web Editor NEW
1.3K 118.0 510.0 18 KB

Android ImageView replacement which allows image loading from URLs or contact address book, with caching

Home Page: http://loopj.com/android-smart-image-view/

Java 100.00%

android-smart-image-view's Introduction

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:

<com.loopj.android.image.SmartImageView android:id="@+id/my_image" />

Get a reference to the layout's SmartImageView:

SmartImageView myImage = (SmartImageView) this.findViewById(R.id.my_image);

Load an image into the view from a URL:

myImage.setImageUrl("http://www.awesomeimages.com/myawesomeimage.jpg");

Load an image into the view from the phone's contact address book:

myImage.setImageContact(contactAddressBookId);

Reporting Bugs or Feature Requests

Please report any bugs or feature requests on the github issues page for this project here:

https://github.com/loopj/android-smart-image-view/issues

License

The Android Smart Image View is released under the Android-friendly Apache License, Version 2.0. Read the full license here:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.