onConfigureTab

abstract fun onConfigureTab(@NonNull tab: TabLayout.Tab, position: Int)

Called to configure the tab for the page at the specified position. Typically calls setText, but any form of styling can be applied.

Parameters

tab

The Tab which should be configured to represent the title of the item at the given position in the data set.

position

The position of the item within the adapter's data set.