Class

TabColors

Represents the colors used in a tab in different states.

Source set: Android
class TabColors internal constructor(
    internal val contentColor: Color,
    internal val inactiveContentColor: Color = contentColor.copy(alpha = 0.4f),
    internal val selectedContentColor: Color,
    internal val focusedContentColor: Color,
    internal val focusedSelectedContentColor: Color,
    internal val disabledContentColor: Color,
    internal val disabledInactiveContentColor: Color = disabledContentColor.copy(alpha = 0.4f),
    internal val disabledSelectedContentColor: Color,
)

Represents the colors used in a tab in different states.

    Pill indicator.

  • See TabDefaults.pillIndicatorTabColors for the default colors used in a Tab when using a
  • using an Underlined indicator

  • See TabDefaults.underlinedIndicatorTabColors for the default colors used in a Tab when

Functions

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: