public static class PeekAnimation.Builder extends Animation.Builder<PeekAnimation,PeekAnimation.Builder>
PeekAnimation
.duration, interpolator
Constructor and Description |
---|
Builder()
Creates a new builder, which allows to configure and create instances of the class
PeekAnimation . |
Modifier and Type | Method and Description |
---|---|
PeekAnimation |
create()
Creates and returns the animation.
|
PeekAnimation.Builder |
setX(float x)
Sets the horizontal position, the animations, which are created by the builder, should
start at.
|
PeekAnimation.Builder |
setY(float y)
Sets the vertical position, the animations, which are created by the builder, should
start at.
|
self, setDuration, setInterpolator
public Builder()
PeekAnimation
.@NonNull public final PeekAnimation.Builder setX(float x)
x
- The horizontal position, which should be set, in pixels as a Float
value@NonNull public final PeekAnimation.Builder setY(float y)
y
- The vertical position, which should be set, in pixels as a Float
value@NonNull public final PeekAnimation create()
Animation.Builder
create
in class Animation.Builder<PeekAnimation,PeekAnimation.Builder>