android.view.animation
Class TranslateAnimation
java.lang.Object
android.view.animation.Animation
android.view.animation.TranslateAnimation
- All Implemented Interfaces:
- Cloneable
public class TranslateAnimation
- extends Animation
Constructor Summary |
TranslateAnimation(Context context,
AttributeSet attrs)
|
TranslateAnimation(float fromXDelta,
float toXDelta,
float fromYDelta,
float toYDelta)
|
TranslateAnimation(int fromXType,
float fromXValue,
int toXType,
float toXValue,
int fromYType,
float fromYValue,
int toYType,
float toYValue)
|
Methods inherited from class android.view.animation.Animation |
cancel, clone, computeDurationHint, ensureInterpolator, finalize, getBackgroundColor, getDetachWallpaper, getDuration, getFillAfter, getFillBefore, getInterpolator, getRepeatCount, getRepeatMode, getScaleFactor, getStartOffset, getStartTime, getTransformation, getTransformation, getZAdjustment, hasEnded, hasStarted, isFillEnabled, isInitialized, reset, resolveSize, restrictDuration, scaleCurrentDuration, setAnimationListener, setBackgroundColor, setDetachWallpaper, setDuration, setFillAfter, setFillBefore, setFillEnabled, setInterpolator, setInterpolator, setRepeatCount, setRepeatMode, setStartOffset, setStartTime, setZAdjustment, start, startNow, willChangeBounds, willChangeTransformationMatrix |
TranslateAnimation
public TranslateAnimation(Context context,
AttributeSet attrs)
TranslateAnimation
public TranslateAnimation(float fromXDelta,
float toXDelta,
float fromYDelta,
float toYDelta)
TranslateAnimation
public TranslateAnimation(int fromXType,
float fromXValue,
int toXType,
float toXValue,
int fromYType,
float fromYValue,
int toYType,
float toYValue)
applyTransformation
protected void applyTransformation(float interpolatedTime,
Transformation t)
- Overrides:
applyTransformation
in class Animation
initialize
public void initialize(int width,
int height,
int parentWidth,
int parentHeight)
- Overrides:
initialize
in class Animation
Copyright © 2008-2012. All Rights Reserved.