Property Animation和View Animation的对比
来源:互联网 发布:淘宝卖家安装哪些软件 编辑:程序博客网 时间:2024/05/22 15:15
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.
- Property Animation和View Animation的对比
- View Animation和Drawable Animation
- 动画——View Animation,Drawable Animation,Property Animation,LayoutTransition
- Property Animation 的使用
- Android 的动画 I-基础知识和View Animation&Drawable Animation
- Android菜鸟的我对于view animator 和 property animation异同的理解
- Animation之Property Animation
- Android -animation-Property Animation
- Animation & Property Animation 使用
- Animation & Property Animation 使用
- Animation & Property Animation 使用
- Animation & Property Animation 使用
- Anroid应用开发——Property Animation与View Animation的区别
- Property Animation
- Property Animation
- Property Animation
- property animation
- Property Animation
- OpenCV Skin Detector with C#
- C51编程在不同内存空间(data xdata bdata)定义变量的注意事项
- 学习Emacs系列教程(八):查找替换
- MongoDB常用操作
- LINUX内核之中断(5)--定时器与延迟执行
- Property Animation和View Animation的对比
- 【网站性能指南】(二)网站性能测量神器
- 【NOI2012】感想
- 浅谈如何留住用户
- 一个 fork 的面试题
- mysql只导出建表语句
- easyUI NumberBox
- pickle 协议性能测试
- Template Matching with OpenCV and C#