Package icyllis.modernui.widget
Interface TabLayout.OnTabSelectedListener
- All Known Implementing Classes:
TabLayout.ViewPagerOnTabSelectedListener
- Enclosing class:
TabLayout
public static interface TabLayout.OnTabSelectedListener
Callback interface invoked when a tab's selection state changes.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Called when a tab that is already selected is chosen again by the user.default void
Called when a tab enters the selected state.default void
Called when a tab exits the selected state.
-
Method Details
-
onTabSelected
Called when a tab enters the selected state.- Parameters:
tab
- The tab that was selected
-
onTabUnselected
Called when a tab exits the selected state.- Parameters:
tab
- The tab that was unselected
-
onTabReselected
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
- The tab that was reselected.
-