public abstract static class Shimmer.Builder<T extends Shimmer.Builder<T>>
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Shimmer |
build() |
T |
consumeAttributes(android.content.Context context,
android.util.AttributeSet attrs)
Applies all specified options from the
AttributeSet. |
T |
copyFrom(Shimmer other)
Copies the configuration of an already built Shimmer to this builder
|
protected abstract T |
getThis() |
T |
setAutoStart(boolean status)
Sets whether the shimmering animation will start automatically.
|
T |
setBaseAlpha(float alpha)
Sets the base alpha, which is the alpha of the underlying children, amount in the range [0,
1].
|
T |
setClipToChildren(boolean status)
Sets whether the shimmer will clip to the childrens' contents, or if it will opaquely draw on
top of the children.
|
T |
setDirection(int direction)
Sets the direction of the shimmer's sweep.
|
T |
setDropoff(float dropoff)
Sets how quickly the shimmer's gradient drops-off.
|
T |
setDuration(long millis)
Sets how long the shimmering animation takes to do one full sweep.
|
T |
setFixedHeight(int fixedHeight)
Sets the fixed height of the shimmer, in pixels.
|
T |
setFixedWidth(int fixedWidth)
Sets the fixed width of the shimmer, in pixels.
|
T |
setHeightRatio(float heightRatio)
Sets the height ratio of the shimmer, multiplied against the total height of the layout.
|
T |
setHighlightAlpha(float alpha)
Sets the shimmer alpha amount in the range [0, 1].
|
T |
setIntensity(float intensity)
Sets the intensity of the shimmer.
|
T |
setRepeatCount(int repeatCount)
Sets how often the shimmering animation will repeat.
|
T |
setRepeatDelay(long millis)
Sets how long to wait in between repeats of the shimmering animation.
|
T |
setRepeatMode(int mode)
Sets how the shimmering animation will repeat.
|
T |
setShape(int shape)
Sets the shape of the shimmer.
|
T |
setTilt(float tilt)
Sets the tilt angle of the shimmer in degrees.
|
T |
setWidthRatio(float widthRatio)
Sets the width ratio of the shimmer, multiplied against the total width of the layout.
|
protected abstract T getThis()
public T consumeAttributes(android.content.Context context, android.util.AttributeSet attrs)
AttributeSet.public T copyFrom(Shimmer other)
public T setDirection(int direction)
Shimmer.Direction.public T setShape(int shape)
Shimmer.Shape.public T setFixedWidth(int fixedWidth)
public T setFixedHeight(int fixedHeight)
public T setWidthRatio(float widthRatio)
public T setHeightRatio(float heightRatio)
public T setIntensity(float intensity)
public T setDropoff(float dropoff)
public T setTilt(float tilt)
public T setBaseAlpha(float alpha)
public T setHighlightAlpha(float alpha)
public T setClipToChildren(boolean status)
public T setAutoStart(boolean status)
public T setRepeatCount(int repeatCount)
ValueAnimator.setRepeatCount(int).public T setRepeatMode(int mode)
ValueAnimator.setRepeatMode(int).public T setRepeatDelay(long millis)
public T setDuration(long millis)
public Shimmer build()