public class TranslateYAnimation extends TranslateAnimation
Animation.AnimationListener, Animation.Description
mFromXDelta, mFromXValue, mFromYDelta, mFromYValue, mToXDelta, mToXValue, mToYDelta, mToYValue
ABSOLUTE, INFINITE, RELATIVE_TO_PARENT, RELATIVE_TO_SELF, RESTART, REVERSE, START_ON_FIRST_FRAME, ZORDER_BOTTOM, ZORDER_NORMAL, ZORDER_TOP
Constructor and Description |
---|
TranslateYAnimation(float fromYDelta,
float toYDelta)
Constructor.
|
TranslateYAnimation(int fromYType,
float fromYValue,
int toYType,
float toYValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyTransformation(float interpolatedTime,
Transformation t)
Calculates and sets y translation values on given transformation.
|
initialize
cancel, clone, computeDurationHint, detach, ensureInterpolator, finalize, getBackgroundColor, getDetachWallpaper, getDuration, getFillAfter, getFillBefore, getInterpolator, getInvalidateRegion, getRepeatCount, getRepeatMode, getScaleFactor, getStartOffset, getStartTime, getTransformation, getTransformation, getZAdjustment, hasAlpha, hasEnded, hasStarted, initializeInvalidateRegion, isFillEnabled, isInitialized, reset, resolveSize, restrictDuration, scaleCurrentDuration, setAnimationListener, setBackgroundColor, setDetachWallpaper, setDuration, setFillAfter, setFillBefore, setFillEnabled, setInterpolator, setInterpolator, setListenerHandler, setRepeatCount, setRepeatMode, setStartOffset, setStartTime, setZAdjustment, start, startNow, willChangeBounds, willChangeTransformationMatrix
public TranslateYAnimation(float fromYDelta, float toYDelta)
public TranslateYAnimation(int fromYType, float fromYValue, int toYType, float toYValue)
protected void applyTransformation(float interpolatedTime, Transformation t)
applyTransformation
in class TranslateAnimation
interpolatedTime
- The value of the normalized time (0.0 to 1.0)
after it has been run through the interpolation function.t
- The Transformation object to fill in with the current
transforms.