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

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

Introduction

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

The text is from its open source code.

Constructor

ScaleAnimation(float fromX, float toX, float fromY, float toY)
Constructor to use when building a ScaleAnimation from code
ScaleAnimation(float fromX, float toX, float fromY, float toY, int pivotXType, float pivotXValue, int pivotYType, float pivotYValue)
Constructor to use when building a ScaleAnimation from code
ScaleAnimation(float fromX, float toX, float fromY, float toY, float pivotX, float pivotY)
Constructor to use when building a ScaleAnimation from code
ScaleAnimation(Context context, AttributeSet attrs)
Constructor used when a ScaleAnimation is loaded from a resource.

Method

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.
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.