public class DraggableViewAnimation
extends android.view.animation.Animation
DraggableView.| Constructor and Description |
|---|
DraggableViewAnimation(DraggableView view,
int diff,
long duration,
android.view.animation.Animation.AnimationListener listener)
Creates a new animation, which allows to show or hide a
DraggableView. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyTransformation(float interpolatedTime,
android.view.animation.Transformation transformation) |
cancel, clone, computeDurationHint, ensureInterpolator, finalize, getBackgroundColor, getDetachWallpaper, getDuration, getFillAfter, getFillBefore, getInterpolator, getRepeatCount, getRepeatMode, getScaleFactor, getStartOffset, getStartTime, getTransformation, getTransformation, getZAdjustment, hasEnded, hasStarted, initialize, isFillEnabled, isInitialized, reset, resolveSize, restrictDuration, scaleCurrentDuration, setAnimationListener, setBackgroundColor, setDetachWallpaper, setDuration, setFillAfter, setFillBefore, setFillEnabled, setInterpolator, setInterpolator, setRepeatCount, setRepeatMode, setStartOffset, setStartTime, setZAdjustment, start, startNow, willChangeBounds, willChangeTransformationMatrixpublic DraggableViewAnimation(DraggableView view, int diff, long duration, android.view.animation.Animation.AnimationListener listener)
DraggableView.view - The view, which should be animated, as an instance of the class DraggableView. The view may not be nulldiff - The distance, the view should be vertically moved by, as an Integer value. If
the value is negative, the view's height will be increased, if it is positive, the
view's height will be increasedduration - The duration of the animation in milliseconds, as a Long value. The duration
may not be less than 0listener - The listener, which should be notified about the animation's progress, as an instance
of the type AnimationListener. The listener may not be null