Android tweened Animation properties

Source: Internet
Author: User
Tags time in milliseconds

Android animations are divided into frame animations and tweened animations. Effects of motion tweens:
  • Alpha------- Gradient Transparency Animation effect
  • Scale -------- Gradient Dimension stretch animation effect
  • Translate--- move animation effect on picture transition position
  • rotate------ Picture Transfer rotation animation effect
Specific properties:< Span style= "FONT-SIZE:14PX; Line-height:21px ">
<?xml version= "1.0" encoding= "Utf-8"? ><set xmlns:android= "Http://schemas.android.com/apk/res/android" > <!--transparency--<alpha android:duration= "3" android:fromalpha= "0.0" android:toalpha=             "1.0"/> <!--floating-point value: The Fromalpha property is the transparency at the beginning of the animation Toalpha property is an animation at the end of the opacity description: 0.0 indicates full transparency 1.0 represents a full opacity above value takes a numeric long integer value between 0.0-1.0 of the float data type: Duration property is animated            Duration Description: Time in milliseconds-<!--zoom--<scale/> <!--scale animation effect scale Properties: interpolator Specifies an animated insert with three animation inserts: Accelerate_decelerate_interpolator acceleration-deceleration animation Insert ACC              Elerate_interpolator Acceleration-Animation insert Decelerate_interpolator deceleration-Animation insert other animation effects that belong to a specific Floating-point value the Fromxscale property is the scaling dimension on the x-coordinate at the start of the animation Toxscale property is the scaling dimension on the x-coordinate at the end of the animation FromY            The scale property is the scaling dimension on the y-coordinate at the start of the animation    Toyscale property is the scaling dimension on the y-coordinate at the end of the animation: <span style= "White-space:pre" ></span> above four property values <span style= "White-space:pre" ></span> 0.0 means shrink to no <span style= "White-space:pre" ></s                         Pan> 1.0 indicates normal non-scaling <span style= "White-space:pre" ></span> value less than 1.0 means shrinking A value greater than 1.0 indicates the magnification percentage value Pivotx property is the start position of the animation relative to the object's x-coordinate Pivoty property is animated For the start position of the object's y-coordinate: The above two attribute values are taken from 0%-100% <span style= "WHITE-SPACE:PR                    E "></span> 50% is the long integer value of the midpoint position on the x or y-coordinate of the object: Duration property for animation duration Description: Time in milliseconds Boolean value: Fillafter property When set to True, the animation conversion is applied after the end of the animation-<!--displacement---<translate Android:durat ion= "Android:fromxdelta=" android:fromydelta= "0" android:toxdelta= "0" Android:toydel Ta= "0"/> <!--          Integer value: The Fromxdelta property is the position of the x-coordinate at the start of the animation Toxdelta property is the position on the x-coordinate at the end of the animation Fromydelta property is Position of the y-coordinate at the start of the animation Toydelta property is the position on the y-coordinate at the end of the animation note: Fromxtype Toxtype fromytype to YType time, the default is to use their own relative reference Long Integer value: Duration property for animation duration Description: <span style= "White-space:pre" ></span> time in milliseconds-<!--rotated-<rotate/> <!            --Properties: interpolator Specifies an animated insert with three animation inserts: Accelerate_decelerate_interpolator acceleration-deceleration animation insert Accelerate_interpolator Acceleration-Animation insert Decelerate_interpolator deceleration-animation insert other belonging to the specific dynamic               Draw effect floating-point value: The Fromdegrees property is the angle of the object at the start of the animation Todegrees property is at the end of the animation when the object rotates at an angle greater than 360 degrees Description: When the angle is negative--indicates counterclockwise rotation when the angle is positive--Indicates a clockwise rotation (negative fro          M--to positive: Clockwise rotation)              (Negative from--to negative: counterclockwise rotation)                      (Positive from--to positive: clockwise rotation)            (Positive from--to negative number: counterclockwise rotation) percent value Pivotx property is the start position of the animation relative to the x-coordinate of the object           The Pivoty property is the starting position of the animation relative to the object's Y coordinate: <span style= "White-space:pre" ></span> above two attribute values from 0%-100% <span style= "White-space:pre" ></span> 50% is the long integer value of the midpoint position on the x or y-coordinate of the object : The Duration property is an animation duration description: The time is measured in milliseconds--></set>


Android tweened Animation properties

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.