TabLayout.BaseOnTabSelectedListener

public static interface TabLayout.BaseOnTabSelectedListener

com.google.android.material.tabs.TabLayout.BaseOnTabSelectedListener<T extends com.google.android.material.tabs.TabLayout.Tab>


This interface is deprecated.
Use TabLayout.OnTabSelectedListener instead.

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

Summary

Public 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.

Public methods

onTabReselected

public abstract void onTabReselected (T tab)

Called when a tab that is already selected is chosen again by the user. Some applications may use this action to return to the top level of a category.

Parameters
tab T: The tab that was reselected.

onTabSelected

public abstract void onTabSelected (T tab)

Called when a tab enters the selected state.

Parameters
tab T: The tab that was selected

onTabUnselected

public abstract void onTabUnselected (T tab)

Called when a tab exits the selected state.

Parameters
tab T: The tab that was unselected