Object

RemoteTextButtonDefaults

Contains the default values used by RemoteTextButton.

Source set: Android
public object RemoteTextButtonDefaults

Contains the default values used by RemoteTextButton.

Properties

shape

Source set: Android
public val shape: RemoteRoundedCornerShape = RemoteCircleShape

Recommended RemoteShape for RemoteTextButton.

pressedShape

Source set: Android
public val pressedShape: RemoteCornerBasedShape

Recommended pressed RemoteShape for RemoteTextButton.

SmallButtonSize

Source set: Android
public val SmallButtonSize: RemoteDp = 48.rdp

The recommended size for a small button.

DefaultButtonSize

Source set: Android
public val DefaultButtonSize: RemoteDp = 52.rdp

The default size applied for buttons.

LargeButtonSize

Source set: Android
public val LargeButtonSize: RemoteDp = 60.rdp

The recommended size for a large button.

smallButtonTextStyle

Source set: Android
public val smallButtonTextStyle: RemoteTextStyle

The recommended text style for a small button.

defaultButtonTextStyle

Source set: Android
public val defaultButtonTextStyle: RemoteTextStyle

The default text style applied for buttons.

largeButtonTextStyle

Source set: Android
public val largeButtonTextStyle: RemoteTextStyle

The recommended text style for a large button.

Functions

shapes

Source set: Android
@Composable @RemoteComposable public fun shapes(): RemoteTextButtonShapes

Returns the default RemoteTextButtonShapes for a static RemoteTextButton.

Return

a RemoteTextButtonShapes with the default static shape

shapes

Source set: Android
@Composable
    public fun shapes(shape: RemoteShape): RemoteTextButtonShapes

Returns a RemoteTextButtonShapes for a static RemoteTextButton.

Parameters

shape The normal shape of the RemoteTextButton.

Return

a RemoteTextButtonShapes with the given static shape

animatedShapes

Source set: Android
@Composable
    public fun animatedShapes(
        shape: RemoteCornerBasedShape = this.shape,
        pressedShape: RemoteCornerBasedShape = this.pressedShape,
    ): RemoteTextButtonShapes

Returns a RemoteTextButtonShapes with an animation between two RemoteCornerBasedShapes when pressed.

The press animation requires both shapes to be RemoteRoundedCornerShapes. It is driven by touch events on the player, and is not shown by players that don't dispatch them.

Example of a text button animated when pressed:

Parameters

shape The normal shape of the RemoteTextButton.
pressedShape The pressed shape of the RemoteTextButton.

Return

a RemoteTextButtonShapes with the configured resting and pressed shapes

textButtonColors

Source set: Android
@Composable
    public fun textButtonColors(): RemoteTextButtonColors

Returns a RemoteTextButtonColors for a text button - by default, a transparent background with contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.

Return

a RemoteTextButtonColors with the default colors for a RemoteTextButton

textButtonColors

Source set: Android
@Composable
    public fun textButtonColors(
        containerColor: RemoteColor? = null,
        contentColor: RemoteColor? = null,
        disabledContainerColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
    ): RemoteTextButtonColors

Returns a RemoteTextButtonColors for a text button - by default, a transparent background with contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.

Parameters

containerColor The background color of this text button when enabled, or null to use the theme default.
contentColor The content color of this text button when enabled, or null to use the theme default.
disabledContainerColor The background color of this text button when not enabled, or null to use the theme default.
disabledContentColor The content color of this text button when not enabled, or null to use the theme default.

Return

a RemoteTextButtonColors with the configured colors for a RemoteTextButton

filledTonalTextButtonColors

Source set: Android
@Composable
    public fun filledTonalTextButtonColors(): RemoteTextButtonColors

Returns a RemoteTextButtonColors for a filled tonal RemoteTextButton - by default, a muted colored background with a contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.

Example of a RemoteTextButton with filledTonalTextButtonColors:

filledTonalTextButtonColors

Source set: Android
@Composable
    public fun filledTonalTextButtonColors(
        containerColor: RemoteColor? = null,
        contentColor: RemoteColor? = null,
        disabledContainerColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
    ): RemoteTextButtonColors

Returns a RemoteTextButtonColors for a filled tonal RemoteTextButton - by default, a muted colored background with a contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.

Example of a RemoteTextButton with filledTonalTextButtonColors:

Parameters

containerColor the background color of this text button when enabled, or null to use the default (RemoteColorScheme.surfaceContainer).
contentColor the content color of this text button when enabled, or null to use the default (RemoteColorScheme.onSurface).
disabledContainerColor the background color of this text button when not enabled, or null to use the default (RemoteColorScheme.onSurface with 12% opacity).
disabledContentColor the content color of this text button when not enabled, or null to use the default (RemoteColorScheme.onSurface with 38% opacity).
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: