{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

IconToggleButtonColors

public final class IconToggleButtonColors


Represents the container and content colors used in a toggleable icon button in different states.

Summary

Public constructors

IconToggleButtonColors(
    @NonNull Color containerColor,
    @NonNull Color contentColor,
    @NonNull Color disabledContainerColor,
    @NonNull Color disabledContentColor,
    @NonNull Color checkedContainerColor,
    @NonNull Color checkedContentColor
)

create an instance with arbitrary colors.

Public methods

boolean
equals(Object other)
final @NonNull Color

the container color of this icon button when checked.

final @NonNull Color

the content color of this icon button when checked.

final @NonNull Color

the container color of this icon button when enabled.

final @NonNull Color

the content color of this icon button when enabled.

final @NonNull Color

the container color of this icon button when not enabled.

final @NonNull Color

the content color of this icon button when not enabled.

int

Public constructors

IconToggleButtonColors

public IconToggleButtonColors(
    @NonNull Color containerColor,
    @NonNull Color contentColor,
    @NonNull Color disabledContainerColor,
    @NonNull Color disabledContentColor,
    @NonNull Color checkedContainerColor,
    @NonNull Color checkedContentColor
)

create an instance with arbitrary colors.

Parameters
@NonNull Color containerColor

the container color of this icon button when enabled.

@NonNull Color contentColor

the content color of this icon button when enabled.

@NonNull Color disabledContainerColor

the container color of this icon button when not enabled.

@NonNull Color disabledContentColor

the content color of this icon button when not enabled.

@NonNull Color checkedContainerColor

the container color of this icon button when checked.

@NonNull Color checkedContentColor

the content color of this icon button when checked.

Public methods

equals

public boolean equals(Object other)

getCheckedContainerColor

public final @NonNull Color getCheckedContainerColor()

the container color of this icon button when checked.

getCheckedContentColor

public final @NonNull Color getCheckedContentColor()

the content color of this icon button when checked.

getContainerColor

public final @NonNull Color getContainerColor()

the container color of this icon button when enabled.

getContentColor

public final @NonNull Color getContentColor()

the content color of this icon button when enabled.

getDisabledContainerColor

public final @NonNull Color getDisabledContainerColor()

the container color of this icon button when not enabled.

getDisabledContentColor

public final @NonNull Color getDisabledContentColor()

the content color of this icon button when not enabled.

hashCode

public int hashCode()