Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/animation/
DAnimationCloning.java110 ShapeHolder shapeHolder = new ShapeHolder(drawable); in addBall() local
111 shapeHolder.setX(x - 25f); in addBall()
112 shapeHolder.setY(y - 25f); in addBall()
122 shapeHolder.setPaint(paint); in addBall()
123 balls.add(shapeHolder); in addBall()
124 return shapeHolder; in addBall()
130 ShapeHolder shapeHolder = balls.get(i); in onDraw() local
132 canvas.translate(shapeHolder.getX(), shapeHolder.getY()); in onDraw()
133 shapeHolder.getShape().draw(canvas); in onDraw()
DAnimationLoading.java156 ShapeHolder shapeHolder = new ShapeHolder(drawable); in createBall() local
157 shapeHolder.setX(x); in createBall()
158 shapeHolder.setY(y); in createBall()
159 return shapeHolder; in createBall()
163 ShapeHolder shapeHolder = createBall(x, y); in addBall() local
164 shapeHolder.setColor(color); in addBall()
165 balls.add(shapeHolder); in addBall()
169 ShapeHolder shapeHolder = createBall(x, y); in addBall() local
174 Paint paint = shapeHolder.getShape().getPaint(); in addBall()
179 balls.add(shapeHolder); in addBall()
DBouncingBalls.java156 ShapeHolder shapeHolder = new ShapeHolder(drawable); in addBall() local
157 shapeHolder.setX(x - 25f); in addBall()
158 shapeHolder.setY(y - 25f); in addBall()
168 shapeHolder.setPaint(paint); in addBall()
169 balls.add(shapeHolder); in addBall()
170 return shapeHolder; in addBall()
176 ShapeHolder shapeHolder = balls.get(i); in onDraw() local
178 canvas.translate(shapeHolder.getX(), shapeHolder.getY()); in onDraw()
179 shapeHolder.getShape().draw(canvas); in onDraw()
DAnimationSeeking.java130 ShapeHolder shapeHolder = new ShapeHolder(drawable); in addBall() local
131 shapeHolder.setX(x); in addBall()
132 shapeHolder.setY(y); in addBall()
142 shapeHolder.setPaint(paint); in addBall()
143 balls.add(shapeHolder); in addBall()
144 return shapeHolder; in addBall()
DReversingAnimation.java106 ShapeHolder shapeHolder = new ShapeHolder(drawable); in createBall() local
107 shapeHolder.setX(x - 25f); in createBall()
108 shapeHolder.setY(y - 25f); in createBall()
118 shapeHolder.setPaint(paint); in createBall()
119 return shapeHolder; in createBall()
DMultiPropertyAnimation.java147 ShapeHolder shapeHolder = new ShapeHolder(drawable); in addBall() local
148 shapeHolder.setX(x); in addBall()
149 shapeHolder.setY(y); in addBall()
159 shapeHolder.setPaint(paint); in addBall()
160 balls.add(shapeHolder); in addBall()
161 return shapeHolder; in addBall()
DCustomEvaluator.java145 ShapeHolder shapeHolder = new ShapeHolder(drawable); in createBall() local
146 shapeHolder.setX(x - 25f); in createBall()
147 shapeHolder.setY(y - 25f); in createBall()
157 shapeHolder.setPaint(paint); in createBall()
158 return shapeHolder; in createBall()
DAnimatorEvents.java174 ShapeHolder shapeHolder = new ShapeHolder(drawable); in createBall() local
175 shapeHolder.setX(x - 25f); in createBall()
176 shapeHolder.setY(y - 25f); in createBall()
186 shapeHolder.setPaint(paint); in createBall()
187 return shapeHolder; in createBall()