Anroid应用开发——Property Animation与View Animation的区别

区别一:需要的Anroid API level不一样

Property Animation需要Android API level 11的支持,而View Animation则是更早期的版本。

区别二:适用范围不一样

Property Animation适用于所有的Object对象,而View Animation则只能应用于View对象。

区别三:XML声明结构、存放目录不一样

Property Animation的XML声明文件存放在res/animator目录下,而View Animation则存放在res/anim目录。具体的XML结构可以查看Animation Resources

区别四:类的继承结构不一样

property Animation基于Animator和AnimatorSet的类结构,而View Animation则基于Animation和AnimationSet的类结构。

关于Property Animation与View Animation的细节请看下面两篇文章:

你可能感兴趣的:(animation)