Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added new examples to Demo Application, updated version name and read…

…me file
  • Loading branch information...
commit dfa14b1669b9f9f708782919cefd99fb9eaf1d88 1 parent 91ae3f0
@malmstein malmstein authored
Showing with 31 additions and 2 deletions.
  1. +29 −0 README.textile
  2. +2 −2 demo/AndroidManifest.xml
View
29 README.textile
@@ -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.
@@ -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
View
4 demo/AndroidManifest.xml
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.