Object

RemoteCheckboxButtonDefaults

Contains the default values used by RemoteCheckboxButton.

Source set: Android
public object RemoteCheckboxButtonDefaults

Contains the default values used by RemoteCheckboxButton.

Properties

Height

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

The default height of RemoteCheckboxButton.

IconSpacing

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

The default spacing between an icon and label in RemoteCheckboxButton.

IconSize

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

The recommended default size for icons when used inside RemoteCheckboxButton.

LabelSpacerSize

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

The default spacing between label and secondary label in RemoteCheckboxButton.

ContentPadding

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

The default content padding used by RemoteCheckboxButton.

checkboxButtonShape

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

The default shape for RemoteCheckboxButton.

BoxSize

Source set: Android
public val BoxSize: RemoteDp = 18.rdp

The size of the inner box of the checkbox.

BoxStroke

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

The stroke width of the checkbox border.

BoxRadius

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

The corner radius of the checkbox box.

BoxOuterSize

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

The outer size of the checkbox touch/draw target.

Functions

checkboxButtonColors

Source set: Android
@Composable
    public fun checkboxButtonColors(): RemoteCheckboxButtonColors

Creates a RemoteCheckboxButtonColors with default values for RemoteCheckboxButton.

Return

a RemoteCheckboxButtonColors with the default colors for RemoteCheckboxButton

checkboxButtonColors

Source set: Android
@Composable
    public fun checkboxButtonColors(
        checkedContainerColor: RemoteColor? = null,
        checkedContentColor: RemoteColor? = null,
        checkedSecondaryContentColor: RemoteColor? = null,
        checkedIconColor: RemoteColor? = null,
        checkedBoxColor: RemoteColor? = null,
        checkedCheckmarkColor: RemoteColor? = null,
        uncheckedContainerColor: RemoteColor? = null,
        uncheckedContentColor: RemoteColor? = null,
        uncheckedSecondaryContentColor: RemoteColor? = null,
        uncheckedIconColor: RemoteColor? = null,
        uncheckedBoxColor: RemoteColor? = null,
        disabledCheckedContainerColor: RemoteColor? = null,
        disabledCheckedContentColor: RemoteColor? = null,
        disabledCheckedSecondaryContentColor: RemoteColor? = null,
        disabledCheckedIconColor: RemoteColor? = null,
        disabledCheckedBoxColor: RemoteColor? = null,
        disabledCheckedCheckmarkColor: RemoteColor? = null,
        disabledUncheckedContainerColor: RemoteColor? = null,
        disabledUncheckedContentColor: RemoteColor? = null,
        disabledUncheckedSecondaryContentColor: RemoteColor? = null,
        disabledUncheckedIconColor: RemoteColor? = null,
        disabledUncheckedBoxColor: RemoteColor? = null,
    ): RemoteCheckboxButtonColors

Creates a RemoteCheckboxButtonColors with customized colors for RemoteCheckboxButton.

Parameters

checkedContainerColor Container color when checked and enabled, or null to use the theme default.
checkedContentColor Content color when checked and enabled, or null to use the theme default.
checkedSecondaryContentColor Secondary content color when checked and enabled, or null to use the theme default.
checkedIconColor Icon color when checked and enabled, or null to use the theme default.
checkedBoxColor Box color when checked and enabled, or null to use the theme default.
checkedCheckmarkColor Checkmark color when checked and enabled, or null to use the theme default.
uncheckedContainerColor Container color when unchecked and enabled, or null to use the theme default.
uncheckedContentColor Content color when unchecked and enabled, or null to use the theme default.
uncheckedSecondaryContentColor Secondary content color when unchecked and enabled, or null to use the theme default.
uncheckedIconColor Icon color when unchecked and enabled, or null to use the theme default.
uncheckedBoxColor Box color when unchecked and enabled, or null to use the theme default.
disabledCheckedContainerColor Container color when checked and disabled, or null to use the theme default.
disabledCheckedContentColor Content color when checked and disabled, or null to use the theme default.
disabledCheckedSecondaryContentColor Secondary content color when checked and disabled, or null to use the theme default.
disabledCheckedIconColor Icon color when checked and disabled, or null to use the theme default.
disabledCheckedBoxColor Box color when checked and disabled, or null to use the theme default.
disabledCheckedCheckmarkColor Checkmark color when checked and disabled, or null to use the theme default.
disabledUncheckedContainerColor Container color when unchecked and disabled, or null to use the theme default.
disabledUncheckedContentColor Content color when unchecked and disabled, or null to use the theme default.
disabledUncheckedSecondaryContentColor Secondary content color when unchecked and disabled, or null to use the theme default.
disabledUncheckedIconColor Icon color when unchecked and disabled, or null to use the theme default.
disabledUncheckedBoxColor Box color when unchecked and disabled, or null to use the theme default.

Return

a RemoteCheckboxButtonColors with the configured colors for RemoteCheckboxButton

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: