Source set: Android
public object PlaceholderDefaults
Contains the default values used for providing placeholders.
There are two distinct but coordinated aspects to placeholders in Compose for Wear OS. Firstly Modifier.placeholder which is drawn instead of content that is not yet loaded. Secondly a placeholder shimmer effect Modifier.placeholderShimmer effect which runs in an animation loop while waiting for the data to load. Note that besides placeholders, cached content may also be shown while waiting for the data to refresh.
Properties
shape
Source set: Android
public val shape: Shape
Default Shape for Modifier.placeholder and Modifier.placeholderShimmer.
color
Source set: Android
public val color: Color
Default Color for Modifier.placeholder.
shimmerColor
Source set: Android
public val shimmerColor: Color
Default Color for Modifier.placeholderShimmer.