addTab

abstract fun addTab(tab: ActionBar.Tab)(source)

Deprecated

Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other common navigation patterns instead.

Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list. If this is the first tab to be added it will become the selected tab.

Parameters

tab

Tab to add


abstract fun addTab(tab: ActionBar.Tab, setSelected: Boolean)(source)

Deprecated

Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other common navigation patterns instead.

Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list.

Parameters

tab

Tab to add

setSelected

True if the added tab should become the selected tab.


abstract fun addTab(tab: ActionBar.Tab, position: Int)(source)

Deprecated

Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other common navigation patterns instead.

Add a tab for use in tabbed navigation mode. The tab will be inserted at position. If this is the first tab to be added it will become the selected tab.

Parameters

tab

The tab to add

position

The new position of the tab


abstract fun addTab(tab: ActionBar.Tab, position: Int, setSelected: Boolean)(source)

Deprecated

Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other common navigation patterns instead.

Add a tab for use in tabbed navigation mode. The tab will be inserted at position.

Parameters

tab

The tab to add

position

The new position of the tab

setSelected

True if the added tab should become the selected tab.