<Set xmlns: Android = "http://schemas.android.com/apk/res/android"> <translate Android: fromxdelta = "0" Android: toxdelta = "100%" Android: Duration = "300"/> <Alpha Android: fromalpha = "0.0" Android: toalpha = "1.0" Android: Duration = "300"/> </set>
Where:
translate position transfer animation effect
integer value:
the fromxdelta attribute is the position on the X coordinate when the animation starts.
the toxdelta attribute is the position on the X coordinate when the animation ends.
the fromydelta attribute is on the Y coordinate when the animation starts.
the toydelta attribute is the position on the Y coordinate when the animation ends
note:
not specified.
the animation duration is set to "duration" by default.
long integer value:
the animation duration is set to "duration".
Description: The time is in milliseconds.
You can add % and P to these attributes, for example:
Android: toxdelta = "100%", indicating its own 100%, that is, starting from the view's own position.
Android: toxdelta = "80% P", indicating 80% of the parent view, which is based on its parent view.