Unit |
applyTransformation(interpolatedTime: Float, t: Transformation!)
Helper for getTransformation. Subclasses should implement this to apply their transforms given an interpolation value. Implementations of this method should always replace the specified Transformation or document they are doing otherwise.
|
Unit |
cancel()
Cancel the animation. Cancelling an animation invokes the animation listener, if set, to notify the end of the animation. If you cancel an animation manually, you must call reset() before starting the animation again.
|
Unit |
ensureInterpolator()
Gurantees that this animation has an interpolator. Will use a AccelerateDecelerateInterpolator is nothing else was specified.
|
Unit |
finalize()
|
Int |
getBackdropColor()
Returns the background color to show behind the animating windows. Will only show the background if showBackdrop was set to true. See setShowBackdrop(boolean) .
|
Int |
getBackgroundColor()
Returns the background color behind the animation.
|
Boolean |
getDetachWallpaper()
Return value of setDetachWallpaper(boolean) .
|
Boolean |
getFillAfter()
If fillAfter is true, this animation will apply its transformation after the end time of the animation.
|
Boolean |
getFillBefore()
If fillBefore is true, this animation will apply its transformation before the start time of the animation. If fillBefore is false and fillEnabled is true, the transformation will not be applied until the start time of the animation.
|
Interpolator! |
getInterpolator()
Gets the acceleration curve type for this animation.
|
Int |
getRepeatCount()
Defines how many times the animation should repeat. The default value is 0.
|
Int |
getRepeatMode()
Defines what this animation should do when it reaches the end.
|
Float |
getScaleFactor()
The scale factor is set by the call to getTransformation . Overrides of getTransformation(long,android.view.animation.Transformation,float) will get this value directly. Overrides of applyTransformation(float,android.view.animation.Transformation) can call this method to get the value.
|
Boolean |
getShowBackdrop()
If showBackdrop is true and this animation is applied on a window, then the windows in the animation will animate with the background associated with this window behind them. If no backdrop color is explicitly set, the backdrop's color comes from the android.R.styleable#Theme_colorBackground that is applied to this window through its theme. If multiple animating windows have showBackdrop set to true during an animation, the top most window with showBackdrop set to true and a valid background color takes precedence.
|
Long |
getStartOffset()
When this animation should start, relative to StartTime
|
Boolean |
getTransformation(currentTime: Long, outTransformation: Transformation!, scale: Float)
Gets the transformation to apply at a specified point in time. Implementations of this method should always replace the specified Transformation or document they are doing otherwise.
|
Int |
getZAdjustment()
Returns the Z ordering mode to use while running the animation as previously set by setZAdjustment .
|
Boolean |
hasEnded()
Indicates whether this animation has ended or not.
|
Boolean |
hasStarted()
Indicates whether this animation has started or not.
|
Boolean |
isFillEnabled()
If fillEnabled is true, this animation will apply the value of fillBefore.
|
Boolean |
isInitialized()
Whether or not the animation has been initialized.
|
Float |
resolveSize(type: Int, value: Float, size: Int, parentSize: Int)
Convert the information in the description of a size to an actual dimension
|
Unit |
setAnimationListener(listener: Animation.AnimationListener!)
Binds an animation listener to this animation. The animation listener is notified of animation events such as the end of the animation or the repetition of the animation.
|
Unit |
setBackdropColor(backdropColor: Int)
Set the color to use for the backdrop shown behind the animating windows. Will only show the backdrop if showBackdrop was set to true. See setShowBackdrop(boolean) .
|
Unit |
setBackgroundColor(bg: Int)
Set background behind animation.
|
Unit |
setDetachWallpaper(detachWallpaper: Boolean)
If detachWallpaper is true, and this is a window animation of a window that has a wallpaper background, then the window will be detached from the wallpaper while it runs. That is, the animation will only be applied to the window, and the wallpaper behind it will remain static.
|
Unit |
setFillEnabled(fillEnabled: Boolean)
If fillEnabled is true, the animation will apply the value of fillBefore. Otherwise, fillBefore is ignored and the animation transformation is always applied until the animation ends.
|
Unit |
setInterpolator(context: Context!, resID: Int)
Sets the acceleration curve for this animation. The interpolator is loaded as a resource from the specified context.
|
Unit |
setInterpolator(i: Interpolator!)
Sets the acceleration curve for this animation. Defaults to a linear interpolation.
|
Unit |
setRepeatCount(repeatCount: Int)
Sets how many times the animation should be repeated. If the repeat count is 0, the animation is never repeated. If the repeat count is greater than 0 or INFINITE , the repeat mode will be taken into account. The repeat count is 0 by default.
|
Unit |
setShowBackdrop(showBackdrop: Boolean)
If showBackdrop is true and this animation is applied on a window, then the windows in the animation will animate with the background associated with this window behind them. If no backdrop color is explicitly set, the backdrop's color comes from the android.R.styleable#Theme_colorBackground that is applied to this window through its theme. If multiple animating windows have showBackdrop set to true during an animation, the top most window with showBackdrop set to true and a valid background color takes precedence.
|
Unit |
setZAdjustment(zAdjustment: Int)
Set the Z ordering mode to use while running the animation.
|
Unit |
start()
Convenience method to start the animation the first time getTransformation(long,android.view.animation.Transformation) is invoked.
|
Unit |
startNow()
Convenience method to start the animation at the current time in milliseconds.
|