Object

RemoteRadioButtonDefaults

Contains the default values used by RemoteRadioButton.

Source set: Android
public object RemoteRadioButtonDefaults

Contains the default values used by RemoteRadioButton.

Properties

Height

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

The default height of RemoteRadioButton.

IconSpacing

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

The default spacing between an icon and label in RemoteRadioButton.

IconSize

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

The recommended default size for icons when used inside RemoteRadioButton.

LabelSpacerSize

Source set: Android
public val LabelSpacerSize: RemoteDp = 1.rdp

The default spacing between label and secondary label in RemoteRadioButton.

ContentPadding

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

The default content padding used by RemoteRadioButton.

radioButtonShape

Source set: Android
public val radioButtonShape: RemoteRoundedCornerShape = RemoteShapeDefaults.Large

The default shape for RemoteRadioButton.

CircleRadius

Source set: Android
public val CircleRadius: RemoteDp = 9.rdp

The outer radius of the radio button ring.

CircleStroke

Source set: Android
public val CircleStroke: RemoteDp = 2.rdp

The stroke width of the radio button ring.

DotRadius

Source set: Android
public val DotRadius: RemoteDp = 5.rdp

The radius of the inner dot when selected.

ControlSize

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

The outer size of the radio button control.

Functions

radioButtonColors

Source set: Android
@Composable
    public fun radioButtonColors(): RemoteRadioButtonColors

Creates a RemoteRadioButtonColors with default values for RemoteRadioButton.

Return

a RemoteRadioButtonColors with the default colors for RemoteRadioButton

radioButtonColors

Source set: Android
@Composable
    public fun radioButtonColors(
        selectedContainerColor: RemoteColor? = null,
        selectedContentColor: RemoteColor? = null,
        selectedSecondaryContentColor: RemoteColor? = null,
        selectedIconColor: RemoteColor? = null,
        selectedControlColor: RemoteColor? = null,
        unselectedContainerColor: RemoteColor? = null,
        unselectedContentColor: RemoteColor? = null,
        unselectedSecondaryContentColor: RemoteColor? = null,
        unselectedIconColor: RemoteColor? = null,
        unselectedControlColor: RemoteColor? = null,
        disabledSelectedContainerColor: RemoteColor? = null,
        disabledSelectedContentColor: RemoteColor? = null,
        disabledSelectedSecondaryContentColor: RemoteColor? = null,
        disabledSelectedIconColor: RemoteColor? = null,
        disabledSelectedControlColor: RemoteColor? = null,
        disabledUnselectedContainerColor: RemoteColor? = null,
        disabledUnselectedContentColor: RemoteColor? = null,
        disabledUnselectedSecondaryContentColor: RemoteColor? = null,
        disabledUnselectedIconColor: RemoteColor? = null,
        disabledUnselectedControlColor: RemoteColor? = null,
    ): RemoteRadioButtonColors

Creates a RemoteRadioButtonColors with customized colors for RemoteRadioButton.

Parameters

selectedContainerColor Container color when selected and enabled, or null to use the theme default.
selectedContentColor Content color when selected and enabled, or null to use the theme default.
selectedSecondaryContentColor Secondary content color when selected and enabled, or null to use the theme default.
selectedIconColor Icon color when selected and enabled, or null to use the theme default.
selectedControlColor Control color when selected and enabled, or null to use the theme default.
unselectedContainerColor Container color when unselected and enabled, or null to use the theme default.
unselectedContentColor Content color when unselected and enabled, or null to use the theme default.
unselectedSecondaryContentColor Secondary content color when unselected and enabled, or null to use the theme default.
unselectedIconColor Icon color when unselected and enabled, or null to use the theme default.
unselectedControlColor Control color when unselected and enabled, or null to use the theme default.
disabledSelectedContainerColor Container color when selected and disabled, or null to use the theme default.
disabledSelectedContentColor Content color when selected and disabled, or null to use the theme default.
disabledSelectedSecondaryContentColor Secondary content color when selected and disabled, or null to use the theme default.
disabledSelectedIconColor Icon color when selected and disabled, or null to use the theme default.
disabledSelectedControlColor Control color when selected and disabled, or null to use the theme default.
disabledUnselectedContainerColor Container color when unselected and disabled, or null to use the theme default.
disabledUnselectedContentColor Content color when unselected and disabled, or null to use the theme default.
disabledUnselectedSecondaryContentColor Secondary content color when unselected and disabled, or null to use the theme default.
disabledUnselectedIconColor Icon color when unselected and disabled, or null to use the theme default.
disabledUnselectedControlColor Control color when unselected and disabled, or null to use the theme default.

Return

a RemoteRadioButtonColors with the configured colors for RemoteRadioButton

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: