TabStyle


@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
class TabStyle


Defines the visual style of a Tab.

This style can be used to customize the appearance of the visual container around a tab, such as its shape (corner radius), selected background color, and text color.

Custom styles will fall back to host defaults if they are unset, or if they fail host-enforced contrast requirements.

Summary

Nested types

A builder for TabStyle.

Public functions

Boolean
equals(other: Any?)
CarColor?

Returns the CarColor of the selected tab container background, or null if not set.

Shape?

Returns the Shape of the container, or null if not set.

CarColor?

Returns the CarColor of the text within the tab container, or null if not set.

Int
String

Public functions

equals

fun equals(other: Any?): Boolean

getSelectedBackgroundColor

Added in 1.9.0-alpha02
fun getSelectedBackgroundColor(): CarColor?

Returns the CarColor of the selected tab container background, or null if not set.

getShape

Added in 1.9.0-alpha02
fun getShape(): Shape?

Returns the Shape of the container, or null if not set.

getTextColor

Added in 1.9.0-alpha02
fun getTextColor(): CarColor?

Returns the CarColor of the text within the tab container, or null if not set.

hashCode

fun hashCode(): Int

toString

fun toString(): String