setContentDescription

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

Set a description of this tab's content for use in accessibility support. If no content description is provided the title will be used.

Return

The current instance for call chaining

Parameters

resId

A resource ID referring to the description text

See also


@CanIgnoreReturnValue
open fun setContentDescription(@Nullable contentDesc: CharSequence): TabLayout.Tab

Set a description of this tab's content for use in accessibility support. If no content description is provided the title will be used.

Return

The current instance for call chaining

Parameters

contentDesc

Description of this tab's content

See also