Searched refs:newBall (Results 1 – 1 of 1) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | BouncingBalls.java | 84 ShapeHolder newBall = addBall(event.getX(), event.getY()); in onTouchEvent() local 87 float startY = newBall.getY(); in onTouchEvent() 92 ValueAnimator bounceAnim = ObjectAnimator.ofFloat(newBall, "y", startY, endY); in onTouchEvent() 95 ValueAnimator squashAnim1 = ObjectAnimator.ofFloat(newBall, "x", newBall.getX(), in onTouchEvent() 96 newBall.getX() - 25f); in onTouchEvent() 101 ValueAnimator squashAnim2 = ObjectAnimator.ofFloat(newBall, "width", newBall.getWidth(), in onTouchEvent() 102 newBall.getWidth() + 50); in onTouchEvent() 107 ValueAnimator stretchAnim1 = ObjectAnimator.ofFloat(newBall, "y", endY, in onTouchEvent() 113 ValueAnimator stretchAnim2 = ObjectAnimator.ofFloat(newBall, "height", in onTouchEvent() 114 newBall.getHeight(), newBall.getHeight() - 25); in onTouchEvent() [all …]
|