Lines Matching refs:animation

17 package android.view.animation;
28 * A layout animation controller is used to animated a layout's, or a view
29 * group's, children. Each child uses the same animation but for every one of
30 * them, the animation starts at a different time. A layout animation controller
32 * child's animation start must be offset. The delay is computed by using
40 * {@link android.view.animation.GridLayoutAnimationController} will compute the
44 * Information used to compute the animation delay of each child are stored
46 * {@link android.view.animation.LayoutAnimationController.AnimationParameters},
56 * Distributes the animation delays in the order in which view were added
62 * Distributes the animation delays in the reverse order in which view were
68 * Randomly distributes the animation delays.
73 * The animation applied on each child of the view group on which this
74 * layout animation controller is set.
96 * Creates a new layout animation controller from external resources.
101 * layout animation controller
126 * Creates a new layout animation controller with a delay of 50%
127 * and the specified animation.
129 * @param animation the animation to use on each child of the view group
131 public LayoutAnimationController(Animation animation) {
132 this(animation, 0.5f);
136 * Creates a new layout animation controller with the specified delay
137 * and the specified animation.
139 * @param animation the animation to use on each child of the view group
140 * @param delay the delay by which each child's animation must be offset
142 public LayoutAnimationController(Animation animation, float delay) {
144 setAnimation(animation);
148 * Returns the order used to compute the delay of each child's animation.
160 * Sets the order used to compute the delay of each child's animation.
172 * Sets the animation to be run on each child of the view group on which
173 * this layout animation controller is .
175 * @param context the context from which the animation must be inflated
176 * @param resourceID the resource identifier of the animation
188 * Sets the animation to be run on each child of the view group on which
189 * this layout animation controller is .
191 * @param animation the animation to run on each child of the view group
198 public void setAnimation(Animation animation) {
199 mAnimation = animation;
204 * Returns the animation applied to each child of the view group on which
207 * @return an {@link android.view.animation.Animation} instance
251 * @return an {@link android.view.animation.Interpolator}
258 * Returns the delay by which the children's animation are offset. The
259 * delay is expressed as a fraction of the animation duration.
261 * @return a fraction of the animation duration
270 * Sets the delay, as a fraction of the animation duration, by which the
274 * child animation delay = child index * delay * animation duration
277 * @param delay a fraction of the animation duration
296 * Starts the animation.
305 * Returns the animation to be applied to the specified view. The returned
306 * animation is delayed by an offset computed according to the information
308 * {@link android.view.animation.LayoutAnimationController.AnimationParameters}.
309 * This method is called by view groups to obtain the animation to set on
313 * @return an animation delayed by the number of milliseconds returned by
325 final Animation animation = mAnimation.clone();
326 animation.setStartOffset(delay);
327 return animation;
334 * Indicates whether the layout animation is over or not. A layout animation
335 * is considered done when the animation with the longest delay is done.
346 * animation must be delayed or offset. Subclasses should override this
349 * This implementation returns <code>child animation delay</code>
353 * child animation delay = child index * delay
357 * {@link android.view.animation.LayoutAnimationController.AnimationParameters}
360 * @param view the view for which to obtain the animation's delay
365 * @see #getTransformedIndex(android.view.animation.LayoutAnimationController.AnimationParameters)
392 * {@link android.view.animation.LayoutAnimationController.AnimationParameters}
398 * @param params the animation parameters containing the index
418 * the view group animated by the layout animation controller. These
420 * animation.