setCustomView

abstract fun setCustomView(view: View): ActionBar.Tab

Set a custom view to be used for this tab. This overrides values set by setText and setIcon.

Return

The current instance for call chaining

Parameters

view

Custom view to be used as a tab.


abstract fun setCustomView(layoutResId: Int): ActionBar.Tab

Set a custom view to be used for this tab. This overrides values set by setText and setIcon.

Return

The current instance for call chaining

Parameters

layoutResId

A layout resource to inflate and use as a custom tab view