setIcon

abstract fun setIcon(icon: Drawable): ActionBar.Tab(source)

Set the icon displayed on this tab.

Return

The current instance for call chaining

Parameters

icon

The drawable to use as an icon


abstract fun setIcon(@DrawableRes resId: Int): ActionBar.Tab(source)

Set the icon displayed on this tab.

Return

The current instance for call chaining

Parameters

resId

Resource ID referring to the drawable to use as an icon