- <set xmlns:android="http://schemas.android.com/apk/res/android" >
- <translate
- Android:fromxdelta="0"
- Android:toxdelta="100%"
- android:duration="/> "
- <alpha
- android:fromalpha="0.0"
- Android:toalpha="1.0"
- android:duration="/> "
- </set>
which
Translate position transfer animation effect
integer value:
&NBSP ; Fromxdelta property is the position of the x-coordinate at the start of the animation
Toxdelta Property is the position of the x-coordinate at the end of the animation
Fromydelta properties for animations The position at the start of the y-coordinate is
Toydelta property is the position of the y-coordinate at the end of the animation
& nbsp NOTE: ,
&NB Sp No designation, &NBSP,
&N Bsp default is to use their own relative reference
Long value:
duration Properties for animation duration
Description: The time is measured in milliseconds
In these properties you can also add% and P, for example:
Android:toxdelta= "100%", which means 100% of itself, starting from view's own position.
Android:toxdelta= "80%p", which represents the 80% of the parent view, is a reference to its parent view
Android-anim translate Fromxdelta, Toxdelta, Fromydelta, Toxdelta properties