public class ClipRectAnimation extends Animation
full package
description for details and
sample code.Animation.AnimationListener, Animation.Description
Modifier and Type | Field and Description |
---|---|
protected Rect |
mFromRect |
protected Rect |
mToRect |
ABSOLUTE, INFINITE, RELATIVE_TO_PARENT, RELATIVE_TO_SELF, RESTART, REVERSE, START_ON_FIRST_FRAME, ZORDER_BOTTOM, ZORDER_NORMAL, ZORDER_TOP
Constructor and Description |
---|
ClipRectAnimation(int fromL,
int fromT,
int fromR,
int fromB,
int toL,
int toT,
int toR,
int toB)
Constructor to use when building a ClipRectAnimation from code
|
ClipRectAnimation(Rect fromClip,
Rect toClip)
Constructor to use when building a ClipRectAnimation from code
|
Modifier and Type | Method and Description |
---|---|
protected void |
applyTransformation(float it,
Transformation tr)
Helper for getTransformation.
|
boolean |
willChangeTransformationMatrix()
Indicates whether or not this animation will affect the transformation
matrix.
|
cancel, clone, computeDurationHint, detach, ensureInterpolator, finalize, getBackgroundColor, getDetachWallpaper, getDuration, getFillAfter, getFillBefore, getInterpolator, getInvalidateRegion, getRepeatCount, getRepeatMode, getScaleFactor, getStartOffset, getStartTime, getTransformation, getTransformation, getZAdjustment, hasAlpha, hasEnded, hasStarted, initialize, 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
public ClipRectAnimation(Rect fromClip, Rect toClip)
fromClip
- the clip rect to animate fromtoClip
- the clip rect to animate topublic ClipRectAnimation(int fromL, int fromT, int fromR, int fromB, int toL, int toT, int toR, int toB)
protected void applyTransformation(float it, Transformation tr)
Animation
applyTransformation
in class Animation
it
- The value of the normalized time (0.0 to 1.0)
after it has been run through the interpolation function.tr
- The Transformation object to fill in with the current
transforms.public boolean willChangeTransformationMatrix()
Animation
Indicates whether or not this animation will affect the transformation matrix. For instance, a fade animation will not affect the matrix whereas a scale animation will.
willChangeTransformationMatrix
in class Animation