public class FadeInBitmapDisplayer extends Object implements BitmapDisplayer
构造器和说明 |
---|
FadeInBitmapDisplayer(int durationMillis) |
FadeInBitmapDisplayer(int durationMillis,
boolean animateFromNetwork,
boolean animateFromDisk,
boolean animateFromMemory) |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 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