Code example for ValueAnimator

Methods: getCurrentPlayTime

0
            ball.getShape().draw(canvas);
        } 
 
        public void onAnimationUpdate(ValueAnimator animation) {
            invalidate();
            long playtime = bounceAnim.getCurrentPlayTime();
            //mSeekBar.setProgress((int)playtime); 
        } 
 
        public void onAnimationCancel(Animator animation) {
        } 
 
        public void onAnimationEnd(Animator animation) {
            balls.remove(((ObjectAnimator)animation).getTarget());
 
        } 
 
        public void onAnimationRepeat(Animator animation) {
        } 
 
        public void onAnimationStart(Animator animation) {