android.view.animation
Class Animation
java.lang.Object
android.view.animation.Animation
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- AlphaAnimation, AnimationSet, RotateAnimation, ScaleAnimation, TranslateAnimation
public abstract class Animation
- extends java.lang.Object
- implements java.lang.Cloneable
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INFINITE
public static final int INFINITE
- See Also:
- Constant Field Values
RESTART
public static final int RESTART
- See Also:
- Constant Field Values
REVERSE
public static final int REVERSE
- See Also:
- Constant Field Values
START_ON_FIRST_FRAME
public static final int START_ON_FIRST_FRAME
- See Also:
- Constant Field Values
ABSOLUTE
public static final int ABSOLUTE
- See Also:
- Constant Field Values
RELATIVE_TO_SELF
public static final int RELATIVE_TO_SELF
- See Also:
- Constant Field Values
RELATIVE_TO_PARENT
public static final int RELATIVE_TO_PARENT
- See Also:
- Constant Field Values
ZORDER_NORMAL
public static final int ZORDER_NORMAL
- See Also:
- Constant Field Values
ZORDER_TOP
public static final int ZORDER_TOP
- See Also:
- Constant Field Values
ZORDER_BOTTOM
public static final int ZORDER_BOTTOM
- See Also:
- Constant Field Values
Animation
public Animation()
Animation
public Animation(Context context,
AttributeSet attrs)
clone
protected Animation clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
reset
public void reset()
isInitialized
public boolean isInitialized()
initialize
public void initialize(int width,
int height,
int parentWidth,
int parentHeight)
setInterpolator
public void setInterpolator(Context context,
int resID)
setInterpolator
public void setInterpolator(Interpolator i)
setStartOffset
public void setStartOffset(long startOffset)
setDuration
public void setDuration(long durationMillis)
restrictDuration
public void restrictDuration(long durationMillis)
scaleCurrentDuration
public void scaleCurrentDuration(float scale)
setStartTime
public void setStartTime(long startTimeMillis)
start
public void start()
startNow
public void startNow()
setRepeatMode
public void setRepeatMode(int repeatMode)
setRepeatCount
public void setRepeatCount(int repeatCount)
isFillEnabled
public boolean isFillEnabled()
setFillEnabled
public void setFillEnabled(boolean fillEnabled)
setFillBefore
public void setFillBefore(boolean fillBefore)
setFillAfter
public void setFillAfter(boolean fillAfter)
setZAdjustment
public void setZAdjustment(int zAdjustment)
setDetachWallpaper
public void setDetachWallpaper(boolean detachWallpaper)
getInterpolator
public Interpolator getInterpolator()
getStartTime
public long getStartTime()
getDuration
public long getDuration()
getStartOffset
public long getStartOffset()
getRepeatMode
public int getRepeatMode()
getRepeatCount
public int getRepeatCount()
getFillBefore
public boolean getFillBefore()
getFillAfter
public boolean getFillAfter()
getZAdjustment
public int getZAdjustment()
getDetachWallpaper
public boolean getDetachWallpaper()
willChangeTransformationMatrix
public boolean willChangeTransformationMatrix()
willChangeBounds
public boolean willChangeBounds()
setAnimationListener
public void setAnimationListener(Animation.AnimationListener listener)
ensureInterpolator
protected void ensureInterpolator()
computeDurationHint
public long computeDurationHint()
getTransformation
public boolean getTransformation(long currentTime,
Transformation outTransformation)
hasStarted
public boolean hasStarted()
hasEnded
public boolean hasEnded()
applyTransformation
protected void applyTransformation(float interpolatedTime,
Transformation t)
resolveSize
protected float resolveSize(int type,
float value,
int size,
int parentSize)
Copyright © 2008-2010. All Rights Reserved.