com.nostra13.universalimageloader.core.display
Class FadeInBitmapDisplayer
java.lang.Object
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Ã
|
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 |
FadeInBitmapDisplayer
public FadeInBitmapDisplayer(int durationMillis)
- Parameters:
durationMillis - Duration of "fade-in" animation (in milliseconds)
FadeInBitmapDisplayer
public FadeInBitmapDisplayer(int durationMillis,
boolean animateFromNetwork,
boolean animateFromDisk,
boolean animateFromMemory)
- Parameters:
durationMillis - Duration of "fade-in" animation (in milliseconds)animateFromNetwork - Whether animation should be played if image is loaded from networkanimateFromDisk - Whether animation should be played if image is loaded from disk cacheanimateFromMemory - Whether animation should be played if image is loaded from memory cache
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 bitmapimageAware - Image aware view to
display BitmaploadedFrom - Source of loaded image
animate
public static void animate(android.view.View imageView,
int durationMillis)
- Animates
ImageView with "fade-in" effect
- Parameters:
imageView - ImageView which display image indurationMillis - The length of the animation in milliseconds
Copyright © 2011-2014. All Rights Reserved.