public void animateProgressFill(int animateTo){
  mAnimationHandler.removeMessages(0);
  if (animateTo > mMax || animateTo < 0) {
    throw new IllegalArgumentException(String.format("Animation progress (%d) is greater than the max progress (%d) or lower than 0 ",animateTo,mMax));
  }
  mAnimationHandler.setAnimateTo(animateTo);
  mAnimationHandler.sendEmptyMessage(0);
  invalidate();
}

public void animateProgressFill ( int animateTo ) { mAnimationHandler . removeMessages ( 0 ) ; if ( animateTo > mMax || animateTo < 0 ) { throw new IllegalArgumentException ( String . format ( "Animation progress (%d) is greater than the max progress (%d) or lower than 0 " , animateTo , mMax ) ) ; } mAnimationHandler . setAnimateTo ( animateTo ) ; mAnimationHandler . sendEmptyMessage ( 0 ) ; invalidate ( ) ; }
animates a progress fill of the view , using a handler .
