TabLayout.OnTabSelectedListener

public static interface TabLayout.OnTabSelectedListener
implements BaseOnTabSelectedListener<TabLayout.Tab>

com.google.android.material.tabs.TabLayout.OnTabSelectedListener
TabLayout.ViewPagerOnTabSelectedListener A TabLayout.OnTabSelectedListener class which contains the necessary calls back to the provided ViewPager so that the tab position is kept in sync. 


Callback interface invoked when a tab's selection state changes.

Summary

Inherited methods

abstract void onTabReselected(T tab)

Called when a tab that is already selected is chosen again by the user.

abstract void onTabSelected(T tab)

Called when a tab enters the selected state.

abstract void onTabUnselected(T tab)

Called when a tab exits the selected state.