Searched refs:bounceAnim (Results 1 – 6 of 6) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | ReversingAnimation.java | 70 ValueAnimator bounceAnim = null; field in ReversingAnimation.MyAnimationView 79 if (bounceAnim == null) { in createAnimation() 80 bounceAnim = ObjectAnimator.ofFloat(ball, "y", ball.getY(), getHeight() - 50f). in createAnimation() 82 bounceAnim.setInterpolator(new AccelerateInterpolator(2f)); in createAnimation() 83 bounceAnim.addUpdateListener(this); in createAnimation() 89 bounceAnim.start(); in startAnimation() 94 bounceAnim.reverse(); in reverseAnimation() 99 bounceAnim.setCurrentPlayTime(seekTime); in seek()
|
D | AnimationSeeking.java | 99 ValueAnimator bounceAnim = null; field in AnimationSeeking.MyAnimationView 108 if (bounceAnim == null) { in createAnimation() 109 bounceAnim = ObjectAnimator.ofFloat(ball, "y", in createAnimation() 111 bounceAnim.setInterpolator(new BounceInterpolator()); in createAnimation() 112 bounceAnim.addUpdateListener(this); in createAnimation() 118 bounceAnim.start(); in startAnimation() 123 bounceAnim.setCurrentPlayTime(seekTime); in seek() 155 long playtime = bounceAnim.getCurrentPlayTime(); in onAnimationUpdate()
|
D | CustomEvaluator.java | 115 ValueAnimator bounceAnim = null; field in CustomEvaluator.MyAnimationView 126 if (bounceAnim == null) { in createAnimation() 129 bounceAnim = ObjectAnimator.ofObject(ballHolder, "xY", in createAnimation() 131 bounceAnim.setDuration(1500); in createAnimation() 132 bounceAnim.addUpdateListener(this); in createAnimation() 138 bounceAnim.start(); in startAnimation()
|
D | MultiPropertyAnimation.java | 74 Animator bounceAnim = null; field in MultiPropertyAnimation.MyAnimationView 86 if (bounceAnim == null) { in createAnimation() 132 bounceAnim = new AnimatorSet(); in createAnimation() 133 ((AnimatorSet)bounceAnim).playTogether(yBouncer, yAlphaBouncer, whxyBouncer, in createAnimation() 140 bounceAnim.start(); in startAnimation()
|
D | BouncingBalls.java | 92 ValueAnimator bounceAnim = ObjectAnimator.ofFloat(newBall, "y", startY, endY); in onTouchEvent() local 93 bounceAnim.setDuration(duration); in onTouchEvent() 94 bounceAnim.setInterpolator(new AccelerateInterpolator()); in onTouchEvent() 125 bouncer.play(bounceAnim).before(squashAnim1); in onTouchEvent()
|
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/ |
D | PlayerSetupActivity.java | 175 ObjectAnimator bounceAnim = ObjectAnimator.ofPropertyValuesHolder( in buttonClick() 177 bounceAnim.setRepeatCount(1); in buttonClick() 178 bounceAnim.setRepeatMode(ValueAnimator.REVERSE); in buttonClick() 179 bounceAnim.setInterpolator(sDecelerator); in buttonClick() 180 bounceAnim.setDuration(300); in buttonClick() 189 bounceAnim.start(); in buttonClick()
|