shimmer
fun PlaceholderHighlight.Companion.shimmer(highlightColor: <Error class: unknown class>, animationSpec: <Error class: unknown class><Float> = PlaceholderDefaults.shimmerAnimationSpec, progressForMaxAlpha: Float = 0.6f): PlaceholderHighlight
Deprecated
accompanist/placeholder is deprecated and the API is no longer maintained. We recommend forking the implementation and customising it to your needs. For more information please visit https://google.github.io/accompanist/placeholder
Creates a PlaceholderHighlight which 'shimmers', using the given highlightColor.
The highlight starts at the top-start, and then grows to the bottom-end during the animation. During that time it is also faded in, from 0f..progressForMaxAlpha, and then faded out from progressForMaxAlpha..1f.
Parameters
highlightColor
the color of the highlight 'shimmer'.
animationSpec
the AnimationSpec to configure the animation.
progressForMaxAlpha
The progress where the shimmer should be at it's peak opacity. Defaults to 0.6f.