public static class Spruce.SpruceBuilder
extends java.lang.Object
Constructor and Description |
---|
SpruceBuilder(android.view.ViewGroup viewGroup)
SpruceBuilder constructor that takes a ViewGroup
|
Modifier and Type | Method and Description |
---|---|
Spruce.SpruceBuilder |
animateWith(android.animation.Animator... animators)
Apply one to many animations to the ViewGroup
|
Spruce.SpruceBuilder |
sortWith(SortFunction function)
SortFunction to animate the ViewGroup
|
android.animation.Animator |
start()
Creates a Spruce instance and starts the sequence of animations
|
public SpruceBuilder(android.view.ViewGroup viewGroup)
viewGroup
- to apply animations and other operations topublic Spruce.SpruceBuilder sortWith(SortFunction function)
function
- subclass of SortFunction to be applied to the ViewGrouppublic Spruce.SpruceBuilder animateWith(android.animation.Animator... animators)
animators
- Animator array to apply to the ViewGroup childrenpublic android.animation.Animator start()