Object

RemoteSplitSwitchButtonDefaults

Contains the default values used by RemoteSplitSwitchButton.

Source set: Android
public object RemoteSplitSwitchButtonDefaults

Contains the default values used by RemoteSplitSwitchButton.

Properties

shape

Source set: Android
public val shape: RemoteRoundedCornerShape = RemoteRoundedCornerShape(26.rdp)

Recommended RemoteRoundedCornerShape for the outer container of RemoteSplitSwitchButton.

splitSectionsShape

Source set: Android
public val splitSectionsShape: RemoteRoundedCornerShape = RemoteRoundedCornerShape(4.rdp)

Recommended RemoteRoundedCornerShape for the split sections.

Height

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

The default minimum height applied for the RemoteSplitSwitchButton.

ContentPadding

Source set: Android
public val ContentPadding: RemotePaddingValues =
        RemotePaddingValues(horizontal = 14.rdp, vertical = 8.rdp)

The default content padding used by RemoteSplitSwitchButton.

Functions

splitSwitchButtonColors

Source set: Android
@Composable
    public fun splitSwitchButtonColors(): RemoteSplitSwitchButtonColors

Creates a RemoteSplitSwitchButtonColors that represents the default container and content colors used in a RemoteSplitSwitchButton.

Return

a RemoteSplitSwitchButtonColors with the default colors for RemoteSplitSwitchButton

splitSwitchButtonColors

Source set: Android
@Composable
    public fun splitSwitchButtonColors(
        checkedContainerColor: RemoteColor? = null,
        checkedContentColor: RemoteColor? = null,
        checkedSecondaryContentColor: RemoteColor? = null,
        checkedSplitContainerColor: RemoteColor? = null,
        checkedThumbColor: RemoteColor? = null,
        checkedThumbIconColor: RemoteColor? = null,
        checkedTrackColor: RemoteColor? = null,
        checkedTrackBorderColor: RemoteColor? = null,
        uncheckedContainerColor: RemoteColor? = null,
        uncheckedContentColor: RemoteColor? = null,
        uncheckedSecondaryContentColor: RemoteColor? = null,
        uncheckedSplitContainerColor: RemoteColor? = null,
        uncheckedThumbColor: RemoteColor? = null,
        uncheckedTrackColor: RemoteColor? = null,
        uncheckedTrackBorderColor: RemoteColor? = null,
        disabledCheckedContainerColor: RemoteColor? = null,
        disabledCheckedContentColor: RemoteColor? = null,
        disabledCheckedSecondaryContentColor: RemoteColor? = null,
        disabledCheckedSplitContainerColor: RemoteColor? = null,
        disabledCheckedThumbColor: RemoteColor? = null,
        disabledCheckedThumbIconColor: RemoteColor? = null,
        disabledCheckedTrackColor: RemoteColor? = null,
        disabledCheckedTrackBorderColor: RemoteColor? = null,
        disabledUncheckedContainerColor: RemoteColor? = null,
        disabledUncheckedContentColor: RemoteColor? = null,
        disabledUncheckedSecondaryContentColor: RemoteColor? = null,
        disabledUncheckedSplitContainerColor: RemoteColor? = null,
        disabledUncheckedThumbColor: RemoteColor? = null,
        disabledUncheckedTrackBorderColor: RemoteColor? = null,
    ): RemoteSplitSwitchButtonColors

Creates a RemoteSplitSwitchButtonColors that represents the default container and content colors used in a RemoteSplitSwitchButton.

Parameters

checkedContainerColor The container color of the RemoteSplitSwitchButton when enabled and checked, or null to use the theme default.
checkedContentColor The content color of the RemoteSplitSwitchButton when enabled and checked, or null to use the theme default.
checkedSecondaryContentColor The secondary content color of the RemoteSplitSwitchButton when enabled and checked, used for secondaryLabel content, or null to use the theme default.
checkedSplitContainerColor The split container color of the RemoteSplitSwitchButton when enabled and checked, or null to use the theme default.
checkedThumbColor The thumb color of the RemoteSplitSwitchButton when enabled and checked, or null to use the theme default.
checkedThumbIconColor The thumb icon color of the RemoteSplitSwitchButton when enabled and checked, or null to use the theme default.
checkedTrackColor The track color of the RemoteSplitSwitchButton when enabled and checked, or null to use the theme default.
checkedTrackBorderColor The track border color of the RemoteSplitSwitchButton when enabled and checked, or null to use the theme default.
uncheckedContainerColor The container color of the RemoteSplitSwitchButton when enabled and unchecked, or null to use the theme default.
uncheckedContentColor The content color of the RemoteSplitSwitchButton when enabled and unchecked, or null to use the theme default.
uncheckedSecondaryContentColor The secondary content color of the RemoteSplitSwitchButton when enabled and unchecked, used for secondaryLabel content, or null to use the theme default.
uncheckedSplitContainerColor The split container color of the RemoteSplitSwitchButton when enabled and unchecked, or null to use the theme default.
uncheckedThumbColor The thumb color of the RemoteSplitSwitchButton when enabled and unchecked, or null to use the theme default.
uncheckedTrackColor The track color of the RemoteSplitSwitchButton when enabled and unchecked, or null to use the theme default.
uncheckedTrackBorderColor The track border color of the RemoteSplitSwitchButton when enabled and unchecked, or null to use the theme default.
disabledCheckedContainerColor The container color of the RemoteSplitSwitchButton when disabled and checked, or null to use the theme default.
disabledCheckedContentColor The content color of the RemoteSplitSwitchButton when disabled and checked, or null to use the theme default.
disabledCheckedSecondaryContentColor The secondary content color of the RemoteSplitSwitchButton when disabled and checked, used for secondaryLabel content, or null to use the theme default.
disabledCheckedSplitContainerColor The split container color of the RemoteSplitSwitchButton when disabled and checked, or null to use the theme default.
disabledCheckedThumbColor The thumb color of the RemoteSplitSwitchButton when disabled and checked, or null to use the theme default.
disabledCheckedThumbIconColor The thumb icon color of the RemoteSplitSwitchButton when disabled and checked, or null to use the theme default.
disabledCheckedTrackColor The track color of the RemoteSplitSwitchButton when disabled and checked, or null to use the theme default.
disabledCheckedTrackBorderColor The track border color of the RemoteSplitSwitchButton when disabled and checked, or null to use the theme default.
disabledUncheckedContainerColor The container color of the RemoteSplitSwitchButton when disabled and unchecked, or null to use the theme default.
disabledUncheckedContentColor The content color of the RemoteSplitSwitchButton when disabled and unchecked, or null to use the theme default.
disabledUncheckedSecondaryContentColor The secondary content color of the RemoteSplitSwitchButton when disabled and unchecked, used for secondaryLabel content, or null to use the theme default.
disabledUncheckedSplitContainerColor The split container color of the RemoteSplitSwitchButton when disabled and unchecked, or null to use the theme default.
disabledUncheckedThumbColor The thumb color of the RemoteSplitSwitchButton when disabled and unchecked, or null to use the theme default.
disabledUncheckedTrackBorderColor The track border color of the RemoteSplitSwitchButton when disabled and unchecked, or null to use the theme default.

Return

a RemoteSplitSwitchButtonColors with the configured colors for RemoteSplitSwitchButton

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: