setText

@CanIgnoreReturnValue
open fun setText(@StringRes resId: Int): TabLayout.Tab

Set the text displayed on this tab. Text may be truncated if there is not room to display the entire string.

Return

The current instance for call chaining

Parameters

resId

A resource ID referring to the text that should be displayed