Stay organized with collections
Save and categorize content based on your preferences.
class TabColors
Represents the colors used in a tab in different states.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# TabColors\n=========\n\nArtifact: [androidx.tv:tv-material](/jetpack/androidx/releases/tv) \n[View Source](https://cs.android.com/search?q=file:androidx/tv/material3/Tab.kt+class:androidx.tv.material3.TabColors) \nAdded in [1.0.0](/jetpack/androidx/releases/tv#1.0.0)\n\n\n```\nclass TabColors\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents the colors used in a tab in different states.\n\n- See [TabDefaults.pillIndicatorTabColors](/reference/kotlin/androidx/tv/material3/TabDefaults#pillIndicatorTabColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)) for the default colors used in a [Tab](/reference/kotlin/androidx/tv/material3/package-summary#(androidx.tv.material3.TabRowScope).Tab(kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Boolean,androidx.tv.material3.TabColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)) when using a Pill indicator.\n\n- See [TabDefaults.underlinedIndicatorTabColors](/reference/kotlin/androidx/tv/material3/TabDefaults#underlinedIndicatorTabColors(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color)) for the default colors used in a [Tab](/reference/kotlin/androidx/tv/material3/package-summary#(androidx.tv.material3.TabRowScope).Tab(kotlin.Boolean,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.Function0,kotlin.Boolean,androidx.tv.material3.TabColors,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)) when using an Underlined indicator\n\nSummary\n-------\n\n| ### Public functions |\n|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](/reference/kotlin/androidx/tv/material3/TabColors#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |\n| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [hashCode](/reference/kotlin/androidx/tv/material3/TabColors#hashCode())`()` |\n\nPublic functions\n----------------\n\n### equals\n\n```\nopen operator fun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nopen fun hashCode(): Int\n```"]]