【译】Android API Guide 之 属性动画
来源:互联网 发布:淘宝c店还可以赚到钱吗 编辑:程序博客网 时间:2024/05/22 13:14
属性动画与View Animation的区别
How Property Animation Differs from View Animation
The view animation system provides the capability to only animate View
objects, so if you wanted to animate non-View
objects, you have to implement your own code to do so. The view animation system is also constrained in the fact that it only exposes a few aspects of a View
object to animate, such as the scaling and rotation of a View but not the background color, for instance.
Another disadvantage of the view animation system is that it only modified where the View was drawn, and not the actual View itself. For instance, if you animated a button to move across the screen, the button draws correctly, but the actual location where you can click the button does not change, so you have to implement your own logic to handle this.
With the property animation system, these constraints are completely removed, and you can animate any property of any object (Views and non-Views) and the object itself is actually modified. The property animation system is also more robust in the way it carries out animation. At a high level, you assign animators to the properties that you want to animate, such as color, position, or size and can define aspects of the animation such as interpolation and synchronization of multiple animators.
The view animation system, however, takes less time to setup and requires less code to write. If view animation accomplishes everything that you need to do, or if your existing code already works the way you want, there is no need to use the property animation system. It also might make sense to use both animation systems for different situations if the use case arises.
- 【译】Android API Guide 之 属性动画
- Android API Guide --- PropertyAnimation(属性动画)
- Android API Guide for Animation and Graphics(二)—— 动画与图形(属性动画)
- Android 动画之属性动画
- Android动画之属性动画
- Android动画之属性动画
- android 动画 之 属性动画
- Android动画之---属性动画
- Android动画之属性动画
- Android 动画之属性动画
- Android动画之属性动画
- Android动画之属性动画
- Android动画之属性动画
- Android动画之属性动画
- Android动画之属性动画
- android之属性动画
- android之属性动画
- Android之属性动画
- poj-1989
- 简单的计时器
- 基于optics算法的文本分类程序
- leetcode:Palindrome Partitioning
- db2的rollup和cube函数
- 【译】Android API Guide 之 属性动画
- 实战:mysql 5.6复制延迟监控
- 黑马程序员_Java基础_01环境安装、类编译常见错误、标识符、注释
- Mahalanobis distance in R
- Distinct Subsequences----匹配个串串
- UIWebView与JavaScript相互调用
- Android实现刮刮乐效果
- Oracle官方网站的 MySQL connector,ODBC driver,所有版本jdk下载地址
- android异步处理数据