Code example for Animation

Methods: cancel

0
    } 
 
	private void onComplete(Integer fallbackResource, OnCompleteListener completeListener, 
			Bitmap bitmap, Animation animation) {
		if (animation != null) {
			animation.cancel();
		} 
		if (bitmap != null) {
			setImageBitmap(bitmap);
		} else { 
			if (fallbackResource != null) {
				setImageResource(fallbackResource);
			} 
		} 
		if (completeListener != null) {
			completeListener.onComplete();
		} 
	} 
 
    public static void cancelAllTasks() { 
        threadPool.shutdownNow();