AnimationType - The type of the animations, which are created by the builderBuilderType - The type of the builderprotected abstract static class Animation.Builder<AnimationType,BuilderType>
extends java.lang.Object
Animation.| Modifier and Type | Field and Description |
|---|---|
protected long |
duration
The duration of the animations, which are created by the builder.
|
protected android.view.animation.Interpolator |
interpolator
The interpolator, which is used by the animations, which are created by the builder.
|
| Constructor and Description |
|---|
Builder()
Creates a new builder, which allows to configure and create instances of the class
Animation. |
| Modifier and Type | Method and Description |
|---|---|
abstract AnimationType |
create()
Creates and returns the animation.
|
protected BuilderType |
self()
Returns a reference to the builder.
|
BuilderType |
setDuration(long duration)
Sets the duration of the animations, which are created by the builder.
|
BuilderType |
setInterpolator(android.view.animation.Interpolator interpolator)
Sets the interpolator, which should be used by the animations, which are created by the
builder.
|
protected long duration
protected android.view.animation.Interpolator interpolator
public Builder()
Animation.protected final BuilderType self()
public abstract AnimationType create()
public final BuilderType setDuration(long duration)
duration - The duration, which should be set, in milliseconds as a Long value or -1,
if the default duration should be usedpublic final BuilderType setInterpolator(android.view.animation.Interpolator interpolator)
interpolator - The interpolator, which should be set, as an instance of the type Interpolator or null, if the default interpolator should be used