-
- All Implemented Interfaces:
-
com.faltenreich.skeletonlayout.SkeletonStyle
public final class SkeletonConfig implements SkeletonStyle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSkeletonConfig.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegermaskColorprivate FloatmaskCornerRadiusprivate BooleanshowShimmerprivate IntegershimmerColorprivate LongshimmerDurationInMillisprivate SkeletonShimmerDirectionshimmerDirectionprivate IntegershimmerAngle
-
Constructor Summary
Constructors Constructor Description SkeletonConfig(Integer maskColor, Float maskCornerRadius, Boolean showShimmer, Integer shimmerColor, Long shimmerDurationInMillis, SkeletonShimmerDirection shimmerDirection, Integer shimmerAngle)
-
Method Summary
Modifier and Type Method Description IntegergetMaskColor()Color of the mask that fills the original view bounds UnitsetMaskColor(Integer maskColor)Color of the mask that fills the original view bounds FloatgetMaskCornerRadius()x- and y-radius of the oval used to round the mask corners UnitsetMaskCornerRadius(Float maskCornerRadius)x- and y-radius of the oval used to round the mask corners BooleangetShowShimmer()Animate shimmer if set to true UnitsetShowShimmer(Boolean showShimmer)Animate shimmer if set to true IntegergetShimmerColor()Color of the animated shimmer UnitsetShimmerColor(Integer shimmerColor)Color of the animated shimmer LonggetShimmerDurationInMillis()Duration in milliseconds for one shimmer animation to pass the masked view UnitsetShimmerDurationInMillis(Long shimmerDurationInMillis)Duration in milliseconds for one shimmer animation to pass the masked view SkeletonShimmerDirectiongetShimmerDirection()Direction of the animated shimmer UnitsetShimmerDirection(SkeletonShimmerDirection shimmerDirection)Direction of the animated shimmer IntegergetShimmerAngle()Angle in degrees for animated shimmer UnitsetShimmerAngle(Integer shimmerAngle)Angle in degrees for animated shimmer final UnitaddValueObserver(Function0<Unit> onValueChanged)-
-
Method Detail
-
getMaskColor
@ColorInt() Integer getMaskColor()
Color of the mask that fills the original view bounds
-
setMaskColor
Unit setMaskColor(Integer maskColor)
Color of the mask that fills the original view bounds
-
getMaskCornerRadius
Float getMaskCornerRadius()
x- and y-radius of the oval used to round the mask corners
-
setMaskCornerRadius
Unit setMaskCornerRadius(Float maskCornerRadius)
x- and y-radius of the oval used to round the mask corners
-
getShowShimmer
Boolean getShowShimmer()
Animate shimmer if set to true
-
setShowShimmer
Unit setShowShimmer(Boolean showShimmer)
Animate shimmer if set to true
-
getShimmerColor
@ColorInt() Integer getShimmerColor()
Color of the animated shimmer
-
setShimmerColor
Unit setShimmerColor(Integer shimmerColor)
Color of the animated shimmer
-
getShimmerDurationInMillis
Long getShimmerDurationInMillis()
Duration in milliseconds for one shimmer animation to pass the masked view
-
setShimmerDurationInMillis
Unit setShimmerDurationInMillis(Long shimmerDurationInMillis)
Duration in milliseconds for one shimmer animation to pass the masked view
-
getShimmerDirection
SkeletonShimmerDirection getShimmerDirection()
Direction of the animated shimmer
-
setShimmerDirection
Unit setShimmerDirection(SkeletonShimmerDirection shimmerDirection)
Direction of the animated shimmer
-
getShimmerAngle
Integer getShimmerAngle()
Angle in degrees for animated shimmer
-
setShimmerAngle
Unit setShimmerAngle(Integer shimmerAngle)
Angle in degrees for animated shimmer
-
addValueObserver
final Unit addValueObserver(Function0<Unit> onValueChanged)
-
-
-
-