Android Properties Animation

Source: Internet
Author: User

Translated from http://www.android-doc.com/guide/topics/graphics/prop-animation.html

Propertyanimation and Viewanimation differences:

Viewanimation can only display view objects, and to display non-view objects, you need to write your own code implementation. And viewanimation can only be for the view of the proportions, posture and other aspects of animation display, and for example, background color, etc. are powerless;

Another disadvantage of viewanimation is that it only changes the View object's display position, rather than changing the view's real situation. For example, you can use Viewanimation to move from the left side of the screen to the right by using a button, but only when the button is really defined, such as the left side of the screen, it produces a click effect, not where the button is displayed, but where it responds to the Click event.

Propertyanimation does not have these restrictions, it can display view and non-view objects, and it is actual to change the object. At the system level, propertyanimation is more reliable than viewanimation. Animations can also be generated based on more aspects, such as color, difference, and not just position, but even multiple animations can be synchronized.

But Viewanimation is less time consuming than Propertyanimation installation (setup, which can be understood as Startup/prep time), and requires less code to write. If the viewanimation can meet your needs, you can use Viewanimation. Of course, it is also possible to use two sets of animation systems simultaneously.

Android Properties Animation

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.