Home
last modified time | relevance | path

Searched refs:ball (Results 1 – 8 of 8) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/animation/
DMultiPropertyAnimation.java75 ShapeHolder ball = null; field in MultiPropertyAnimation.MyAnimationView
87 ShapeHolder ball; in createAnimation() local
88 ball = balls.get(0); in createAnimation()
89 ObjectAnimator yBouncer = ObjectAnimator.ofFloat(ball, "y", in createAnimation()
90 ball.getY(), getHeight() - BALL_SIZE).setDuration(DURATION); in createAnimation()
94 ball = balls.get(1); in createAnimation()
95 PropertyValuesHolder pvhY = PropertyValuesHolder.ofFloat("y", ball.getY(), in createAnimation()
98 ObjectAnimator yAlphaBouncer = ObjectAnimator.ofPropertyValuesHolder(ball, in createAnimation()
105 ball = balls.get(2); in createAnimation()
106 PropertyValuesHolder pvhW = PropertyValuesHolder.ofFloat("width", ball.getWidth(), in createAnimation()
[all …]
DAnimatorEvents.java110 ShapeHolder ball = null; field in AnimatorEvents.MyAnimationView
115 ball = createBall(25, 25); in MyAnimationView()
120 ObjectAnimator yAnim = ObjectAnimator.ofFloat(ball, "y", in createAnimation()
121 ball.getY(), getHeight() - 50f).setDuration(1500); in createAnimation()
128 ObjectAnimator xAnim = ObjectAnimator.ofFloat(ball, "x", in createAnimation()
129 ball.getX(), ball.getX() + 300).setDuration(1000); in createAnimation()
135 ObjectAnimator alphaAnim = ObjectAnimator.ofFloat(ball, "alpha", 1f, .5f). in createAnimation()
193 canvas.translate(ball.getX(), ball.getY()); in onDraw()
194 ball.getShape().draw(canvas); in onDraw()
DReversingAnimation.java71 ShapeHolder ball = null; field in ReversingAnimation.MyAnimationView
75 ball = createBall(25, 25); in MyAnimationView()
80 bounceAnim = ObjectAnimator.ofFloat(ball, "y", ball.getY(), getHeight() - 50f). in createAnimation()
125 canvas.translate(ball.getX(), ball.getY()); in onDraw()
126 ball.getShape().draw(canvas); in onDraw()
DCustomEvaluator.java98 public BallXYHolder(ShapeHolder ball) { in BallXYHolder() argument
99 mBall = ball; in BallXYHolder()
116 ShapeHolder ball = null; field in CustomEvaluator.MyAnimationView
121 ball = createBall(25, 25); in MyAnimationView()
122 ballHolder = new BallXYHolder(ball); in MyAnimationView()
164 canvas.translate(ball.getX(), ball.getY()); in onDraw()
165 ball.getShape().draw(canvas); in onDraw()
DAnimationSeeking.java100 ShapeHolder ball = null; field in AnimationSeeking.MyAnimationView
104 ball = addBall(200, 0); in MyAnimationView()
109 bounceAnim = ObjectAnimator.ofFloat(ball, "y", in createAnimation()
110 ball.getY(), getHeight() - BALL_SIZE).setDuration(1500); in createAnimation()
149 canvas.translate(ball.getX(), ball.getY()); in onDraw()
150 ball.getShape().draw(canvas); in onDraw()
DAnimationLoading.java184 for (ShapeHolder ball : balls) { in onDraw()
185 canvas.translate(ball.getX(), ball.getY()); in onDraw()
186 ball.getShape().draw(canvas); in onDraw()
187 canvas.translate(-ball.getX(), -ball.getY()); in onDraw()
194 ShapeHolder ball = balls.get(0); in onAnimationUpdate() local
195 ball.setY((Float)animation.getAnimatedValue()); in onAnimationUpdate()
DActivityTransition.java44 R.drawable.ball,
55 R.id.ball,
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java250 Particle ball = mBalls[i]; in updatePositions() local
251 ball.computePhysics(sx, sy, dT, dTC); in updatePositions()
284 Particle ball = mBalls[j]; in update() local
285 float dx = ball.mPosX - curr.mPosX; in update()
286 float dy = ball.mPosY - curr.mPosY; in update()
302 ball.mPosX += dx * c; in update()
303 ball.mPosY += dy * c; in update()
356 Bitmap ball = BitmapFactory.decodeResource(getResources(), R.drawable.ball); in SimulationView() local
359 mBitmap = Bitmap.createScaledBitmap(ball, dstWidth, dstHeight, true); in SimulationView()