2012-03-23 15:51 16144 People read Comments (5) favorite reports Android
[Java]View Plaincopy
- <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 80% of the parent view, is referenced by its parent view.
Excerpt from: http://blog.csdn.net/ztp800201/article/details/7387668
(go) Android-anim translate Fromxdelta, Toxdelta, Fromydelta, Toxdelta properties