Example usage for Java android.view.animation TranslateAnimation fields, constructors, methods, implement or subclass
The text is from its open source code.
TranslateAnimation(float fromXDelta, float toXDelta, float fromYDelta, float toYDelta) Constructor to use when building a TranslateAnimation from code | |
TranslateAnimation(int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float toYValue) Constructor to use when building a TranslateAnimation from code | |
TranslateAnimation(Context context, AttributeSet attrs) Constructor used when a TranslateAnimation is loaded from a resource. |
long | getDuration() How long this animation should last |
void | setAnimationListener(AnimationListener listener) Binds an animation listener to this animation. |
void | setDuration(long durationMillis) How long this animation should last. |
void | setFillAfter(boolean fillAfter) If fillAfter is true, the transformation that this animation performed will persist when it is finished. |
void | setFillBefore(boolean fillBefore) If fillBefore is true, this animation will apply its transformation before the start time of the animation. |
void | setFillEnabled(boolean fillEnabled) If fillEnabled is true, the animation will apply the value of fillBefore. |
void | setInterpolator(Interpolator i) Sets the acceleration curve for this animation. |
void | setRepeatCount(int repeatCount) Sets how many times the animation should be repeated. |
void | setRepeatMode(int repeatMode) Defines what this animation should do when it reaches the end. |
void | setStartOffset(long startOffset) When this animation should start relative to the start time. |
void | setStartTime(long startTimeMillis) When this animation should start. |
void | start() Convenience method to start the animation the first time #getTransformation(long,Transformation) is invoked. |
void | startNow() Convenience method to start the animation at the current time in milliseconds. |