selectTab

Selects the given tab.

Parameters

tab

The tab to select, or null to select none.

See also


open fun selectTab(@Nullable tab: TabLayout.Tab, updateIndicator: Boolean)

Selects the given tab. Will always animate to the selected tab if the current tab is reselected, regardless of the value of updateIndicator.

Parameters

tab

The tab to select, or null to select none.

updateIndicator

Whether to update the indicator.

See also