跳到主要内容

AnimationSet

declare class AnimationSet extends Animation {}

AnimationSet

Instance Method

constructor

declare class AnimationSet {
constructor(shareInterpolator: boolean)
}
  • Description

    Constructor to use when building an AnimationSet from code

clone

declare class AnimationSet {
clone(): AnimationSet
}
  • Description

    Creates and returns a copy of this object.

setFillAfter

declare class AnimationSet {
setFillAfter(fillAfter: boolean):void
}
  • Description

    If fillAfter is true, the transformation that this animation performed will persist when it is finished.

setFillBefore

declare class AnimationSet {
setFillBefore(fillBefore: boolean): void
}
  • Description

    If fillBefore is true, this animation will apply its transformation before the start time of the animation.

setRepeatMode

declare class AnimationSet {
setRepeatMode(repeatMode: number): void
}
  • Description

    Defines what this animation should do when it reaches the end.

setStartOffset

declare class AnimationSet {
setStartOffset(startOffset: number): void
}
  • Description

    When this animation should start relative to the start time.

setDuration

declare class AnimationSet {
setDuration(durationMillis: number) :void
}
  • Description

    Sets the duration of every child animation.

addAnimation

declare class AnimationSet {
addAnimation(a:Animation): void
}
  • Description

    Add a child animation to this animation set

setStartTime

declare class AnimationSet {
setStartTime(startTimeMillis: number) :void
}
  • Description

    Sets the start time of this animation and all child animations

getStartTime

declare class AnimationSet {
getStartTime(): number
}
  • Description

    When this animation should start.

restrictDuration

declare class AnimationSet {
restrictDuration(durationMillis: number): void
}
  • Description

    Ensure that the duration that this animation will run is not longer than durationMillis.

getDuration

declare class AnimationSet {
getDuration(): number
}
  • Description

    The duration of an AnimationSet is defined to be the duration of the longest child animation.

computeDurationHint

declare class AnimationSet {
computeDurationHint(): number
}
  • Description

    The duration hint of an animation set is the maximum of the duration hints of all of its component animations.

scaleCurrentDuration

declare class AnimationSet {
scaleCurrentDuration(scale: number):void
}
  • Description

    How much to scale the duration by.

initialize

declare class AnimationSet {
initialize(width, height, parentWidth, parentHeight): void
}
  • Description

    Initialize this animation with the dimensions of the object being animated as well as the objects parents.

reset

declare class AnimationSet {
reset(): void
}
  • Description

    Reset the initialization state of this animation.

getAnimations

declare class AnimationSet {
getAnimations(): List<Animation>
}
  • Description

    Gets All Animation

getTransformation

declare class AnimationSet {
getTransformation(currentTime: number, t: Transformation): boolean
}
  • Description

    The transformation of an animation set is the concatenation of all of its component animations.

willChangeBounds

declare class AnimationSet {
willChangeBounds(): boolean
}
  • Description

    Indicates whether or not this animation will affect the bounds of the animated view.

willChangeTransformationMatrix

declare class AnimationSet {
willChangeTransformationMatrix(): boolean
}
  • Description

    Indicates whether or not this animation will affect the transformation matrix.