Android: Attribute Animation

Attribute animation is added by Android 3.0. In order to make up for the shortcomings of View animation, but below Android 3.0, although animation compatible library can be used, its essence is still View animation.

Disadvantages of View Animation
Single animation effect, rotation, translation, zooming
Image animation, without changing its own parameters, needs interactive view ing to expose defects
The object of action is constrained on the View

ValueAnimator class
First change the value, then assign the attribute to the object manually to achieve animation; it is indirect operation of the object attribute;

ObjectAnimator class
First change the value, then automatically assign the object's attributes to achieve animation; is to directly operate on the object's attributes;

ObjectAnimator inherits from the ValueAnimator class, that is, the underlying animation implementation mechanism is based on the ValueAnimator class.
ObjectAnimator classes are for arbitrary objects - arbitrary attribute values, not just for View objects

If you need to use ObjectAnimator class to achieve animation effect, then the object you need to manipulate must have set () & get () of that property.
Similarly, for the other three basic animation effects mentioned above, View also has setRotation(), getRotation(), setTranslationX(), getTranslationX(), setScaleY(), getScaleY(), and so on set () & get ().
The AnimatorSet class can be implemented in combination animation with XML settings / Java code settings

AnimatorSet.play(Animator anim): Play the current animation
AnimatorSet.after(long delay): Delays existing animations by x milliseconds before execution
AnimatorSet.with(Animator anim): Executing both existing and incoming animations
AnimatorSet.after(Animator anim): Execute after inserting an existing animation into the incoming animation
AnimatorSet.before(Animator anim): Execute an existing animation before inserting it into the incoming animation

Create an animator resource folder under the value directory, where you create xml files
ordering is the way animation is played: together and sequentially represent two ways of executing simultaneously and sequentially