public class FadeInBitmapDisplayer extends java.lang.Object implements BitmapDisplayer
Constructor and Description |
---|
FadeInBitmapDisplayer(int durationMillis) |
FadeInBitmapDisplayer(int durationMillis,
boolean animateFromNetwork,
boolean animateFromDisk,
boolean animateFromMemory) |
Modifier and Type | Method and Description |
---|---|
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 . |
public FadeInBitmapDisplayer(int durationMillis)
durationMillis
- Duration of "fade-in" animation (in milliseconds)public FadeInBitmapDisplayer(int durationMillis, boolean animateFromNetwork, boolean animateFromDisk, boolean animateFromMemory)
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 cachepublic void display(android.graphics.Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom)
BitmapDisplayer
ImageAware
.
NOTE: This method is called on UI thread so it's strongly recommended not to do any heavy work in it.display
in interface BitmapDisplayer
bitmap
- Source bitmapimageAware
- Image aware view to
display BitmaploadedFrom
- Source of loaded imagepublic static void animate(android.view.View imageView, int durationMillis)
ImageView
with "fade-in" effectimageView
- ImageView
which display image indurationMillis
- The length of the animation in milliseconds