Java android.view.animation TranslateAnimation fields, constructors, methods, implement or subclass

Example usage for Java android.view.animation TranslateAnimation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view.animation TranslateAnimation.

The text is from its open source code.

Constructor

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.

Method

longgetDuration()
How long this animation should last
voidsetAnimationListener(AnimationListener listener)

Binds an animation listener to this animation.

voidsetDuration(long durationMillis)
How long this animation should last.
voidsetFillAfter(boolean fillAfter)
If fillAfter is true, the transformation that this animation performed will persist when it is finished.
voidsetFillBefore(boolean fillBefore)
If fillBefore is true, this animation will apply its transformation before the start time of the animation.
voidsetFillEnabled(boolean fillEnabled)
If fillEnabled is true, the animation will apply the value of fillBefore.
voidsetInterpolator(Interpolator i)
Sets the acceleration curve for this animation.
voidsetRepeatCount(int repeatCount)
Sets how many times the animation should be repeated.
voidsetRepeatMode(int repeatMode)
Defines what this animation should do when it reaches the end.
voidsetStartOffset(long startOffset)
When this animation should start relative to the start time.
voidsetStartTime(long startTimeMillis)
When this animation should start.
voidstart()
Convenience method to start the animation the first time #getTransformation(long,Transformation) is invoked.
voidstartNow()
Convenience method to start the animation at the current time in milliseconds.