hasText

public Unit hasText(String text, Integer position)

Checks if TabLayout have tab with given text with selected position

Parameters

text

tab title to be checked

position

tab position, starts from 0


public Unit hasText(@StringRes() Integer resId, Integer position)

Checks if TabLayout have selected tab with given text

Parameters

resId

reference to string id resource

position

tab position, starts from 0