Git Product home page Git Product logo

image-loader's Introduction

#Novoda image-loader is now deprecated and unmaintained.

We will soon post here our recommendation for image loading in Android.

Description

image-loader is a simple library that makes it easy to download, display and cache remote images in Android apps. Image download happens off the UI thread and the images are cached with a two-level in-memory/SD card cache.

Adding to your project

To start using this library, add these lines to the build.gradle of your project:

repositories {
    maven {
        credentials {
            username 'BINTRAY_USERNAME'
            password 'BINTRAY_KEY'
        }
        url 'http://dl.bintray.com/novoda/maven-private'
    }
}

depedencies {
  compile 'com.novoda:image-loader:2.0-BETA'
}

Simple usage

Create the ImageManager. This can be built with a variety of parameters, check out the example project for more details

LoaderSettings settings = new SettingsBuilder().build(context);
ImageManager imageManager = new ImageManager(context, settings);

Create a tag to wrap the url of a image and set it on the ImageView which will hold the image

ImageTagFactory tagFactory = ImageTagFactory.newInstance();
tagFactory.setHeight(300);
tagFactory.setWidth(300);
ImageTag tag = tagFactory.build("www.myimage.com/foo.png", context);
imageView.setTag(tag);

Use the ImageManager to get an instance of the ImageLoader and provide an ImageView with a tag set

imageManager.getLoader().load(imageView);

Links

Here are a list of useful links:

  • We always welcome people to contribute new features or bug fixes, here is how
  • If you have a problem check the Issues Page first to see if we are working on it
  • For further usage or to delve more deeply checkout the Project Wiki
  • Looking for community help, browse the already asked Stack Overflow Questions or use the tag: support-image-loader when posting a new question

image-loader's People

Contributors

luigi-agosti avatar ataulm avatar friedger avatar charroch avatar jdamcd avatar peter-budo avatar blundell avatar xrigau avatar ouchadam avatar gnorsilva avatar dorvaryn avatar devisnik avatar lynxaegon avatar malmstein avatar johnjohndoe avatar lkorth avatar mr-archano avatar dornathal avatar vipulnsward avatar runor49 avatar addie9000 avatar hal9002 avatar kibao avatar

Watchers

James Cloos avatar  avatar

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.