Android animation Learning

Source: Internet
Author: User

Animation is the effect of windows in and out of the screen in Android. There are four effects:

Alpha Gradient transparency animation effect

Scale Gradient scaling animation effect

Translate Animation Effect

Rotate Animation effects of screen transfer and Rotation

You can set two methods: one is defined in an XML file and the other is defined in a Java file. The definition in XML is relatively simple. You only need to understand the meaning of each attribute and set it accordingly.

In addition, you can also listen to animation by using the following methods:

Myanimation. setanimationlistener (New animationlistener () {public void onanimationend (animation _ animation) {// what to do after the animation is completed} public void onanimationrepeat (animation _ animation) {// what to do when the animation is repeated} public void onanimationstart (animation _ animation) {// what to do when the animation starts }});

There are a lot of animation related introduction online, see the most classic is:


Related Article

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: 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.