Package com.google.accompanist.placeholder.material

Functions

color
Link copied to clipboard
fun PlaceholderDefaults.color(backgroundColor: Color = MaterialTheme.colors.surface, contentColor: Color = contentColorFor(backgroundColor), contentAlpha: Float = 0.1f): Color
Returns the value used as the the color parameter value on Modifier.placeholder.
fade
Link copied to clipboard
fun PlaceholderHighlight.Companion.fade(animationSpec: InfiniteRepeatableSpec<Float> = PlaceholderDefaults.fadeAnimationSpec): PlaceholderHighlight
Creates a PlaceholderHighlight which fades in an appropriate color, using the given animationSpec.
fadeHighlightColor
Link copied to clipboard
fun PlaceholderDefaults.fadeHighlightColor(backgroundColor: Color = MaterialTheme.colors.surface, alpha: Float = 0.3f): Color
Returns the value used as the the highlightColor parameter value of PlaceholderHighlight.Companion.fade.
placeholder
Link copied to clipboard
fun Modifier.placeholder(visible: Boolean, color: Color = Color.Unspecified, shape: Shape? = null, highlight: PlaceholderHighlight? = null, placeholderFadeTransitionSpec: @Composable() Transition.Segment<Boolean>.() -> FiniteAnimationSpec<Float> = { spring() }, contentFadeTransitionSpec: @Composable() Transition.Segment<Boolean>.() -> FiniteAnimationSpec<Float> = { spring() }): Modifier
Draws some skeleton UI which is typically used whilst content is 'loading'.
shimmer
Link copied to clipboard
fun PlaceholderHighlight.Companion.shimmer(animationSpec: InfiniteRepeatableSpec<Float> = PlaceholderDefaults.shimmerAnimationSpec, @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()progressForMaxAlpha: Float = 0.6f): PlaceholderHighlight
Creates a PlaceholderHighlight which 'shimmers', using a default color.
shimmerHighlightColor
Link copied to clipboard
fun PlaceholderDefaults.shimmerHighlightColor(backgroundColor: Color = MaterialTheme.colors.surface, alpha: Float = 0.75f): Color
Returns the value used as the the highlightColor parameter value of PlaceholderHighlight.Companion.shimmer.