Class AnimationManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the animation to the end to the animation queuevoidaddAnimation(ComponentAnimation an, Runnable callback) Adds the animation to the end to the animation queuevoidAdds the animation to the end of the animation queue and blocks the current thread until the animation completesvoidaddUIMutation(Container container, ComponentAnimation an) Adds a UIMutation to the animation manager.voidaddUIMutation(Container container, ComponentAnimation an, Runnable callback) Adds a UIMutation to the animation manager.voidInvokes the runnable when all animations have completedbooleanReturns true if an animation is currently in progressvoidPerforms a step animation as the user scrolls down/up the page e.g.voidonTitleScrollAnimation(Container content, ComponentAnimation... cna) Performs a step animation as the user scrolls down/up the page e.g.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Method Details
-
isAnimating
public boolean isAnimating()Returns true if an animation is currently in progress
Returns
true if an animation is currently in progress
-
addUIMutation
Adds a UIMutation to the animation manager. If there are any current compatible UIMutations in the animation queue, then this mutation will be added to that mutation. Otherwise it will appended to the end of the queue to be run sequentially.
Parameters
-
container: The container that is being mutated. -
an: The animation
Since
7.0
See also
- UIMutation
-
-
addAnimation
Adds the animation to the end to the animation queue
Parameters
an: the animation object
-
addAnimationAndBlock
Adds the animation to the end of the animation queue and blocks the current thread until the animation completes
Parameters
an: the animation to perform
-
addAnimation
Adds the animation to the end to the animation queue
Parameters
-
an: the animation object -
callback: invoked when the animation completes
-
-
addUIMutation
Adds a UIMutation to the animation manager. If there are any current compatible UIMutations in the animation queue, then this mutation will be added to that mutation. Otherwise it will appended to the end of the queue to be run sequentially.
Parameters
-
container: The container that is being mutated. -
an: The animation -
callback: A callback to be run on completion.
Since
7.0
See also
- UIMutation
-
-
onTitleScrollAnimation
Performs a step animation as the user scrolls down/up the page e.g. slowly converting a title UIID from a big visual representation to a smaller title for easier navigation then back again when scrolling up
Parameters
cna: the animation to bind to the scroll event
-
onTitleScrollAnimation
Performs a step animation as the user scrolls down/up the page e.g. slowly converting a title UIID from a big visual representation to a smaller title for easier navigation then back again when scrolling up
Parameters
-
content: the scrollable container representing the body -
cna: the animation to bind to the scroll event
-
-
flushAnimation
Invokes the runnable when all animations have completed
Parameters
r: the runnable that will be invoked after the animations
-