Class AdditiveAnimator
- java.lang.Object
-
- at.wirecube.additiveanimations.additive_animator.sequence.AnimationSequence
-
- at.wirecube.additiveanimations.additive_animator.BaseAdditiveAnimator<T,View>
-
- at.wirecube.additiveanimations.additive_animator.SubclassableAdditiveViewAnimator<AdditiveAnimator>
-
- at.wirecube.additiveanimations.additive_animator.AdditiveAnimator
-
public final class AdditiveAnimator extends SubclassableAdditiveViewAnimator<AdditiveAnimator>
Use this class to additively animate a lot of properties of Views. If you want to extend the animatable properties, you should extend `SubclassableAdditiveViewAnimator`. Additive animations are nicely explained here: http://ronnqvi.st/multiple-animations/
-
-
Field Summary
-
Fields inherited from class at.wirecube.additiveanimations.additive_animator.SubclassableAdditiveViewAnimator
mSkipRequestLayout, mWithLayer
-
Fields inherited from class at.wirecube.additiveanimations.additive_animator.BaseAdditiveAnimator
mAnimationAccumulator, mAnimatorGroup, mCurrentCustomInterpolator, mCurrentTarget, mParent, mRunningAnimationsManager, sequenceDelay, staggerDelay
-
-
Constructor Summary
Constructors Modifier Constructor Description AdditiveAnimator()Creates a new AdditiveAnimator instance without a target view.AdditiveAnimator(long duration)Creates a new AdditiveAnimator instance with the specified animation duration for more convenience.protectedAdditiveAnimator(View view)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AdditiveAnimatoranimate(View view)This is just a convenience method when you need to animate a single view.static AdditiveAnimatoranimate(View... views)static AdditiveAnimatoranimate(View view, long duration)This is just a convenience method when you need to animate a single view.static AdditiveAnimatoranimate(List<View> views, long stagger)static AdditiveAnimatoranimate(List<View> views, long duration, long stagger)protected AdditiveAnimatornewInstance()Factory method for creation of subclass instances.-
Methods inherited from class at.wirecube.additiveanimations.additive_animator.SubclassableAdditiveViewAnimator
alpha, alphaBy, backgroundColor, bottomLeftMarginAlongPath, bottomMargin, bottomMarginBy, bottomPadding, bottomPaddingBy, bottomRightMarginAlongPath, centerX, centerY, elevation, elevationBy, fadeVisibility, getCurrentPropertyValue, getQueuedPropertyValue, getTargetPropertyValue, getTargetPropertyValue, height, heightBy, horizontalMargin, horizontalMarginBy, horizontalPadding, horizontalPaddingBy, leftMargin, leftMarginBy, leftPadding, leftPaddingBy, margin, marginBy, onApplyChanges, padding, paddingBy, requestLayout, rightMargin, rightMarginBy, rightPadding, rightPaddingBy, rotation, rotationBy, rotationX, rotationXBy, rotationY, rotationYBy, scale, scaleBy, scaleX, scaleXBy, scaleY, scaleYBy, scroll, scrollBy, scrollX, scrollXBy, scrollY, scrollYBy, setParent, size, sizeBy, skipRequestLayout, target, topLeftMarginAlongPath, topMargin, topMarginBy, topPadding, topPaddingBy, topRightMarginAlongPath, translationX, translationXBy, translationXYAlongPath, translationXYRotationAlongPath, translationY, translationYBy, translationZ, translationZBy, verticalMargin, verticalMarginBy, verticalPadding, verticalPaddingBy, visibility, width, widthBy, withLayer, withoutLayer, x, xBy, xyAlongPath, xyRotationAlongPath, y, yBy, z, zBy
-
Methods inherited from class at.wirecube.additiveanimations.additive_animator.BaseAdditiveAnimator
action, addEndAction, addListener, addPauseListener, addStartAction, addTarget, addUpdateListener, animate, animate, animate, animate, animate, animatePropertiesAlongPath, animateProperty, animateProperty, animatePropertyBy, apply, apply, applyCustomProperties, cancelAnimation, cancelAnimation, cancelAnimation, cancelAnimationsForObject, cancelAnimationsForObjects, cancelAnimationsInCollection, createAnimation, createAnimation, createAnimation, createChildWithDelayAfterParentStart, createChildWithRawDelay, getCurrentTarget, getQueuedPropertyValue, getRunningAnimationsManager, getTargetPropertyValue, getTargetPropertyValue, getTotalDurationInSequence, getValueAnimator, initValueAnimatorIfNeeded, property, property, property, runIfParentIsInSameAnimationGroup, self, setDefaultDuration, setDefaultInterpolator, setDelayInSequence, setDuration, setInterpolator, setRepeatCount, setRepeatMode, setsDefaultInterpolator, setStartDelay, start, state, switchDuration, switchInterpolator, switchToDefaultInterpolator, targets, targets, targets, then, thenBeforeEnd, thenDelayAfterEnd, thenWithDelay
-
Methods inherited from class at.wirecube.additiveanimations.additive_animator.sequence.AnimationSequence
playSequentially, playSequentially, playTogether, playTogether, playWithDelayBetweenAnimations
-
-
-
-
Constructor Detail
-
AdditiveAnimator
protected AdditiveAnimator(View view)
-
AdditiveAnimator
public AdditiveAnimator()
Creates a new AdditiveAnimator instance without a target view. You **must** call `target(View v)` before calling one of the animation methods.
-
AdditiveAnimator
public AdditiveAnimator(long duration)
Creates a new AdditiveAnimator instance with the specified animation duration for more convenience. You **must** call `target(View v)` before calling one of the animation methods.
-
-
Method Detail
-
animate
public static AdditiveAnimator animate(View view)
This is just a convenience method when you need to animate a single view. No state is kept in individual AdditiveAnimator instances, so you don't need to keep a reference to it.- Parameters:
view- The view to animate.- Returns:
- A new instance of AdditiveAnimator with `target` set to `view`.
-
animate
public static AdditiveAnimator animate(View... views)
-
animate
public static AdditiveAnimator animate(List<View> views, long stagger)
-
animate
public static AdditiveAnimator animate(List<View> views, long duration, long stagger)
-
animate
public static AdditiveAnimator animate(View view, long duration)
This is just a convenience method when you need to animate a single view. No state is kept in individual AdditiveAnimator instances, so you don't need to keep a reference to it.- Parameters:
view- The view to animate.duration- The animation duration.- Returns:
- A new instance of AdditiveAnimator with the animation target set to `view` and the animationDuration set to `duration`.
-
newInstance
protected AdditiveAnimator newInstance()
Description copied from class:BaseAdditiveAnimatorFactory method for creation of subclass instances. Override to use all of the advanced features with your custom subclass.- Specified by:
newInstancein classBaseAdditiveAnimator<AdditiveAnimator,View>
-
-