Skip to content

Commit

Permalink
Added new examples to Demo Application, updated version name and read…
Browse files Browse the repository at this point in the history
…me file
  • Loading branch information
malmstein committed Oct 4, 2012
1 parent 91ae3f0 commit dfa14b1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions README.textile
Expand Up @@ -5,6 +5,10 @@ Download happens away from the UI thread and the images are cached with a two-le

h2. Recent changes

h3. 1.5.7-SNAPSHOT

* Added the possibility of loading a picture with an Animation

h3. 1.5.6-SNAPSHOT

* Removed necessity to set a service in the manifest for the clean up. Everything is done in the BasicFileManager with a background thread.
Expand Down Expand Up @@ -161,6 +165,31 @@ ImageLoader contains a utility class for directly downloading a Bitmap from a UR

This method will throw an ImageNotFoundException if there is no image on the other end of your URL.

h3. Adding an animation

If you want to load a an image using an animation you just have to add an Animation object to the imageLoader.load method

<pre><code>

ImageTagFactory imageTagFactory = new ImageTagFactory(this, R.drawable.bg_img_loading);
imageTagFactory.setErrorImageId(R.drawable.bg_img_notfound);

Animation fadeInAnimation = AnimationUtils.loadAnimation(this, R.anim.fade_in);

private ViewBinder getViewBinder() {
return new ViewBinder() {
@Override
public boolean setViewValue(View view, Cursor cursor, int columnIndex) {
// Build image tag with remote image URL
ImageTag tag = imageTagFactory.build(cursor.getString(columnIndex));
((ImageView) view).setTag(tag);
imageLoader.load(view, fadeInAnimation);
return true;
}
};
}
</code></pre>

h2. Getting the library

h3. Using Maven
Expand Down
4 changes: 2 additions & 2 deletions demo/AndroidManifest.xml
Expand Up @@ -3,8 +3,8 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.novoda.imageloader.demo"
android:versionCode="7"
android:versionName="1.5.6">
android:versionCode="8"
android:versionName="1.5.7-SNAPSHOT">

<uses-sdk
android:minSdkVersion="4"
Expand Down

0 comments on commit dfa14b1

Please sign in to comment.