Today I will say, about using the insert in animator, and analyzing the meaning of each property.
1, animator How to use the insertion device
The Setinterpolator method is set by calling the Animator object (the subclass object).
1Propertyvaluesholder P1 = propertyvaluesholder.offloat ("X", List.get (0). GetX ());2Propertyvaluesholder P2 = propertyvaluesholder.offloat ("Y", List.get (0). GetY ());3Objectanimator OA = Objectanimator.ofpropertyvaluesholder (List.get (i + 1), p2, p1);4Oa.setduration (100);5 //anticipateinterpolator--means that when the animation starts, it snaps backwards .6Oa.setinterpolator (Newanticipateinterpolator ());7Oa_list[i] = OA;
2. Type of Insert
First, all the input classes inherit the Baseinterpolator class, so let's see what classes
1.AccelerateDecelerateInterpolator class
Accelerated motion
2.AccelerateInterpolator class
The rate of change starts slowly and then accelerates
3.AnticipateInterpolator class
At the beginning of the animation, it will slam backwards.
4.AnticipateOvershootInterpolator class
Start with the back and then throw a certain value back to the last value
5.BounceInterpolator class
Pop up at the end of the animation
5.CycleInterpolator class
When the animation is repeated, the speed changes along the sinusoidal curve
6.DecelerateInterpolator class
At the beginning of the animation place fast and then slow
Animated animation properties in Android Animation (5)