Animated animation properties in Android Animation (5)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.