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

NavigationDrawerItemColors

public interface NavigationDrawerItemColors


Represents the colors of the various elements of a drawer item.

Summary

Public methods

abstract @NonNull State<@NonNull Color>
@Composable
badgeColor(boolean selected)

Represents the badge color for this item, depending on whether it is selected.

abstract @NonNull State<@NonNull Color>
@Composable
containerColor(boolean selected)

Represents the container color for this item, depending on whether it is selected.

abstract @NonNull State<@NonNull Color>
@Composable
iconColor(boolean selected)

Represents the icon color for this item, depending on whether it is selected.

abstract @NonNull State<@NonNull Color>
@Composable
textColor(boolean selected)

Represents the text color for this item, depending on whether it is selected.

Public methods

badgeColor

@Composable
abstract @NonNull State<@NonNull ColorbadgeColor(boolean selected)

Represents the badge color for this item, depending on whether it is selected.

Parameters
boolean selected

whether the item is selected

containerColor

@Composable
abstract @NonNull State<@NonNull ColorcontainerColor(boolean selected)

Represents the container color for this item, depending on whether it is selected.

Parameters
boolean selected

whether the item is selected

iconColor

@Composable
abstract @NonNull State<@NonNull ColoriconColor(boolean selected)

Represents the icon color for this item, depending on whether it is selected.

Parameters
boolean selected

whether the item is selected

textColor

@Composable
abstract @NonNull State<@NonNull ColortextColor(boolean selected)

Represents the text color for this item, depending on whether it is selected.

Parameters
boolean selected

whether the item is selected