Object

RemoteEdgeButtonDefaults

Contains the default values used by RemoteEdgeButton.

Source set: Android
public object RemoteEdgeButtonDefaults

Contains the default values used by RemoteEdgeButton.

Properties

ExtraSmallIconSize

Source set: Android
public val ExtraSmallIconSize: RemoteDp = 24.rdp

The recommended icon size when used with RemoteEdgeButtonSize.ExtraSmall.

SmallIconSize

Source set: Android
public val SmallIconSize: RemoteDp = 32.rdp

The recommended icon size when used with RemoteEdgeButtonSize.Small.

MediumIconSize

Source set: Android
public val MediumIconSize: RemoteDp = 32.rdp

The recommended icon size when used with RemoteEdgeButtonSize.Medium.

LargeIconSize

Source set: Android
public val LargeIconSize: RemoteDp = 36.rdp

The recommended icon size when used with RemoteEdgeButtonSize.Large.

VerticalPadding

Source set: Android
public val VerticalPadding: RemoteDp = 3.rdp

Padding around the Edge Button on its top and bottom.

TopContentPadding

Source set: Android
public val TopContentPadding: RemoteDp = 6.rdp

The recommended top content padding for RemoteEdgeButton.

BottomContentPadding

Source set: Android
public val BottomContentPadding: RemoteDp = 8.rdp

The recommended bottom content padding for RemoteEdgeButton.

HorizontalContentPadding

Source set: Android
public val HorizontalContentPadding: RemoteDp = 0.rdp

The recommended horizontal content padding for RemoteEdgeButton.

ContentPadding

Source set: Android
public val ContentPadding: RemotePaddingValues =
        RemotePaddingValues(
            leftPadding = HorizontalContentPadding,
            topPadding = TopContentPadding,
            rightPadding = HorizontalContentPadding,
            bottomPadding = BottomContentPadding,
        )

The default content padding used by RemoteEdgeButton.

Functions

iconSizeFor

Source set: Android
public fun iconSizeFor(edgeButtonSize: RemoteEdgeButtonSize): RemoteDp

Recommended icon size for a given edge button size.

Parameters

edgeButtonSize The size of the edge button

Return

the recommended icon size in RemoteDp for edgeButtonSize

shape

Source set: Android
public fun shape(buttonSize: RemoteEdgeButtonSize = RemoteEdgeButtonSize.Small): RemoteShape

The recommended shape for RemoteEdgeButton of a given buttonSize.

Parameters

buttonSize The RemoteEdgeButtonSize of the edge button.

Return

the recommended RemoteShape for buttonSize

buttonColors

Source set: Android
@Composable
    public fun buttonColors(): RemoteButtonColors

Creates a RemoteButtonColors that represents the default background and content colors used in a RemoteEdgeButton.

Return

a RemoteButtonColors with the default colors for a filled RemoteEdgeButton

buttonColors

Source set: Android
@Composable
    public fun buttonColors(
        containerColor: RemoteColor? = null,
        contentColor: RemoteColor? = null,
        secondaryContentColor: RemoteColor? = null,
        iconColor: RemoteColor? = null,
        disabledContainerColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
        disabledSecondaryContentColor: RemoteColor? = null,
        disabledIconColor: RemoteColor? = null,
    ): RemoteButtonColors

Creates a RemoteButtonColors that represents the default background and content colors used in a RemoteEdgeButton.

Parameters

containerColor The background color of this RemoteEdgeButton when enabled, or null to use the theme default.
contentColor The content color of this RemoteEdgeButton when enabled, or null to use the theme default.
secondaryContentColor The secondary content color of this RemoteEdgeButton when enabled, or null to use the theme default.
iconColor The icon color of this RemoteEdgeButton when enabled, or null to use the theme default.
disabledContainerColor The background color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledContentColor The content color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledSecondaryContentColor The secondary content color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledIconColor The icon color of this RemoteEdgeButton when not enabled, or null to use the theme default.

Return

a RemoteButtonColors with the configured colors for a filled RemoteEdgeButton

filledTonalButtonColors

Source set: Android
@Composable
    public fun filledTonalButtonColors(): RemoteButtonColors

Creates a RemoteButtonColors with filled tonal colors for RemoteEdgeButton.

Return

a RemoteButtonColors with the default colors for a filled tonal RemoteEdgeButton

filledTonalButtonColors

Source set: Android
@Composable
    public fun filledTonalButtonColors(
        containerColor: RemoteColor? = null,
        contentColor: RemoteColor? = null,
        secondaryContentColor: RemoteColor? = null,
        iconColor: RemoteColor? = null,
        disabledContainerColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
        disabledSecondaryContentColor: RemoteColor? = null,
        disabledIconColor: RemoteColor? = null,
    ): RemoteButtonColors

Creates a RemoteButtonColors with filled tonal colors for RemoteEdgeButton.

Parameters

containerColor The background color of this RemoteEdgeButton when enabled, or null to use the theme default.
contentColor The content color of this RemoteEdgeButton when enabled, or null to use the theme default.
secondaryContentColor The secondary content color of this RemoteEdgeButton when enabled, or null to use the theme default.
iconColor The icon color of this RemoteEdgeButton when enabled, or null to use the theme default.
disabledContainerColor The background color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledContentColor The content color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledSecondaryContentColor The secondary content color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledIconColor The icon color of this RemoteEdgeButton when not enabled, or null to use the theme default.

Return

a RemoteButtonColors with the configured colors for a filled tonal RemoteEdgeButton

filledVariantButtonColors

Source set: Android
@Composable
    public fun filledVariantButtonColors(): RemoteButtonColors

Creates a RemoteButtonColors with higher chroma container colors for RemoteEdgeButton.

Return

a RemoteButtonColors with the default colors for a filled variant RemoteEdgeButton

filledVariantButtonColors

Source set: Android
@Composable
    public fun filledVariantButtonColors(
        containerColor: RemoteColor? = null,
        contentColor: RemoteColor? = null,
        secondaryContentColor: RemoteColor? = null,
        iconColor: RemoteColor? = null,
        disabledContainerColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
        disabledSecondaryContentColor: RemoteColor? = null,
        disabledIconColor: RemoteColor? = null,
    ): RemoteButtonColors

Creates a RemoteButtonColors with higher chroma container colors for RemoteEdgeButton.

Parameters

containerColor The background color of this RemoteEdgeButton when enabled, or null to use the theme default.
contentColor The content color of this RemoteEdgeButton when enabled, or null to use the theme default.
secondaryContentColor The secondary content color of this RemoteEdgeButton when enabled, or null to use the theme default.
iconColor The icon color of this RemoteEdgeButton when enabled, or null to use the theme default.
disabledContainerColor The background color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledContentColor The content color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledSecondaryContentColor The secondary content color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledIconColor The icon color of this RemoteEdgeButton when not enabled, or null to use the theme default.

Return

a RemoteButtonColors with the configured colors for a filled variant RemoteEdgeButton

outlinedButtonColors

Source set: Android
@Composable
    public fun outlinedButtonColors(): RemoteButtonColors

Creates a RemoteButtonColors with outlined colors for RemoteEdgeButton.

Return

a RemoteButtonColors with the default colors for an outlined RemoteEdgeButton

outlinedButtonColors

Source set: Android
@Composable
    public fun outlinedButtonColors(
        contentColor: RemoteColor? = null,
        secondaryContentColor: RemoteColor? = null,
        iconColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
        disabledSecondaryContentColor: RemoteColor? = null,
        disabledIconColor: RemoteColor? = null,
    ): RemoteButtonColors

Creates a RemoteButtonColors with outlined colors for RemoteEdgeButton.

Parameters

contentColor The content color of this RemoteEdgeButton when enabled, or null to use the theme default.
secondaryContentColor The secondary content color of this RemoteEdgeButton when enabled, or null to use the theme default.
iconColor The icon color of this RemoteEdgeButton when enabled, or null to use the theme default.
disabledContentColor The content color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledSecondaryContentColor The secondary content color of this RemoteEdgeButton when not enabled, or null to use the theme default.
disabledIconColor The icon color of this RemoteEdgeButton when not enabled, or null to use the theme default.

Return

a RemoteButtonColors with the configured colors for an outlined RemoteEdgeButton

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: