View Animation

来源:互联网 发布:vscode html自动补全 编辑:程序博客网 时间:2024/06/06 05:37

View Animation

You can use the view animation system to perform tweened animation on Views.

The animation instructions define the transformations that you want to occur, when they will occur, and how long they should take to apply.

The animation XML file belongs in the res/anim/ directory of you Android project. The file must have a single root element: this will be either a single <alpha>, <scale>, <translate>, <rotate>, interpolator element, or <set> element that holds groups of these elemetns.By default, all animation instructions are applied simultaneously. To make them occur senquentially, you must specify the startOffset attribute.

Regardless of how your animation may move or resize, the bounds of the view that holds you animation will not automatically adjust to accommodate it. Even so, the animation will still be drawn beyond the bounds of its view and will not be clipped. However, clipping will occur if the animation exceeds the bounds of the parent view.

0 0