com.nostra13.universalimageloader.core.display
Class FadeInBitmapDisplayer

java.lang.Object
  extended by com.nostra13.universalimageloader.core.display.FadeInBitmapDisplayer
All Implemented Interfaces:
BitmapDisplayer

public class FadeInBitmapDisplayer
extends Object
implements BitmapDisplayer

Displays image with "fade in" animation

Since:
1.6.4
Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com), Daniel Martí

Constructor Summary
FadeInBitmapDisplayer(int durationMillis)
           
FadeInBitmapDisplayer(int durationMillis, boolean animateFromNetwork, boolean animateFromDisc, boolean animateFromMemory)
           
 
Method Summary
static void animate(android.view.View imageView, int durationMillis)
          Animates ImageView with "fade-in" effect
 void display(android.graphics.Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom)
          Displays bitmap in ImageAware.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FadeInBitmapDisplayer

public FadeInBitmapDisplayer(int durationMillis)
Parameters:
durationMillis - Duration of "fade-in" animation (in milliseconds)

FadeInBitmapDisplayer

public FadeInBitmapDisplayer(int durationMillis,
                             boolean animateFromNetwork,
                             boolean animateFromDisc,
                             boolean animateFromMemory)
Parameters:
durationMillis - Duration of "fade-in" animation (in milliseconds)
animateFromNetwork - Whether animation should be played if image is loaded from network
animateFromDisc - Whether animation should be played if image is loaded from disc cache
animateFromMemory - Whether animation should be played if image is loaded from memory cache
Method Detail

display

public void display(android.graphics.Bitmap bitmap,
                    ImageAware imageAware,
                    LoadedFrom loadedFrom)
Description copied from interface: BitmapDisplayer
Displays bitmap in ImageAware. NOTE: This method is called on UI thread so it's strongly recommended not to do any heavy work in it.

Specified by:
display in interface BitmapDisplayer
Parameters:
bitmap - Source bitmap
imageAware - Image aware view to display Bitmap
loadedFrom - Source of loaded image ImageAware}

animate

public static void animate(android.view.View imageView,
                           int durationMillis)
Animates ImageView with "fade-in" effect

Parameters:
imageView - ImageView which display image in
durationMillis - The length of the animation in milliseconds


Copyright © 2011-2013. All Rights Reserved.