Code example for AlphaAnimation

Methods: setDuration, setInterpolator

0
import android.view.animation.DecelerateInterpolator; 
import android.widget.ImageView; 
 
/** 
 * Displays image with "fade in" animation 
 *  
 * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 
 * @since 1.6.4 
 */ 
public class FadeInBitmapDisplayer implements BitmapDisplayer { 
 
	private final int durationMillis;
 
	public FadeInBitmapDisplayer(int durationMillis) {
		this.durationMillis = durationMillis;
	} 
 
	@Override 
	public Bitmap display(Bitmap bitmap, ImageView imageView) {
		imageView.setImageBitmap(bitmap);