TabRow

object TabRow
kotlin.Any
   ↳ androidx.ui.material.TabRow

Summary

Nested classes

data

Data class that contains information about a tab's position on screen

Public methods

Unit

Default indicator, which will be positioned at the bottom of the tab, on top of the divider.

Unit
IndicatorContainer(tabPositions: List<TabRow.TabPosition>, selectedIndex: Int, indicator: () -> Unit)

Positions and animates the given indicator between tabs when selectedIndex changes.

Public methods

Indicator

@Composable fun Indicator(): Unit

Default indicator, which will be positioned at the bottom of the tab, on top of the divider.

This is used as the default indicator inside TabRow.

IndicatorContainer

@Composable fun IndicatorContainer(
    tabPositions: List<TabRow.TabPosition>,
    selectedIndex: Int,
    indicator: () -> Unit
): Unit

Positions and animates the given indicator between tabs when selectedIndex changes.