Class

ToggleButtonColors

Represents the colors used by a ToggleButton in different states.

Source set: Android
public class ToggleButtonColors(
    public val backgroundColor: Color,
    public val focusedBackgroundColor: Color,
    public val checkedBackgroundColor: Color,
    public val focusedCheckedBackgroundColor: Color,
    public val contentColor: Color,
    public val focusedContentColor: Color,
    public val checkedContentColor: Color,
    public val focusedCheckedContentColor: Color,
)

Represents the colors used by a ToggleButton in different states.

Functions

copy

Source set: Android
public fun copy(
        backgroundColor: Color = this.backgroundColor,
        focusedBackgroundColor: Color = this.focusedBackgroundColor,
        checkedBackgroundColor: Color = this.checkedBackgroundColor,
        focusedCheckedBackgroundColor: Color = this.focusedCheckedBackgroundColor,
        contentColor: Color = this.contentColor,
        focusedContentColor: Color = this.focusedContentColor,
        checkedContentColor: Color = this.checkedContentColor,
        focusedCheckedContentColor: Color = this.focusedCheckedContentColor,
    ): ToggleButtonColors

Returns a copy of this ToggleButtonColors, optionally overriding some of the values.

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int
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: