if ((animator != null) && (animator.isAnimating())) {
animator.cancel();
animator = null;
animationThread = null;
}
animator = new HUDAnimator(this, "transparency", new FloatInterpolator(), from, to, duration);
animationThread = new Thread(animator);
animationThread.start();
}