Android 12 Developer Preview is here! Try it out, and give us your feedback!

TabPosition

@Immutable class TabPosition
kotlin.Any
   ↳ androidx.compose.material.TabPosition

Data class that contains information about a tab's position on screen, used for calculating where to place the indicator that shows which tab is selected.

Summary

Public methods
Boolean
equals(other: Any?)

Int

String

Properties
Dp

the left edge's x position from the start of the TabRow

Dp

the right edge's x position from the start of the TabRow

Dp

the width of this tab

Public methods

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

Properties

left

val left: Dp

the left edge's x position from the start of the TabRow

val right: Dp

the right edge's x position from the start of the TabRow

width

val width: Dp

the width of this tab