Object

TrailingImageCardDefaults

Default values used for TrailingImageCard

Source set: Android
public object TrailingImageCardDefaults

Default values used for TrailingImageCard

Properties

contentPadding

Source set: Android
public val contentPadding: PaddingValues

Default content padding used for a TrailingImageCard

This affects the outermost content padding applied around the image and the content container. Note that there is additional padding applied around the content / text / image inside a trailing image card, this only represents the outer padding for the entire content.

shape

Source set: Android
public val shape: Shape

The default shape of TrailingImageCard, which determines its corner radius.

color

Source set: Android
public val color: Color

The default background color of TrailingImageCard.

Functions

contentColor

Source set: Android
@Composable
    public fun contentColor(color: Color = TrailingImageCardDefaults.color): Color

Calculates the default content color for a TrailingImageCard based on the provided color.

Parameters

color the background color of the trailing image card

Return

the calculated content color

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: