TabListener
interfaceTabListener
android.app.ActionBar.TabListener |
Callback interface invoked when a tab is focused, unfocused, added, or removed.
Summary
Public methods | |
---|---|
abstract Unit |
onTabReselected(tab: ActionBar.Tab!, ft: FragmentTransaction!) Called when a tab that is already selected is chosen again by the user. |
abstract Unit |
onTabSelected(tab: ActionBar.Tab!, ft: FragmentTransaction!) Called when a tab enters the selected state. |
abstract Unit |
onTabUnselected(tab: ActionBar.Tab!, ft: FragmentTransaction!) Called when a tab exits the selected state. |
Public methods
onTabReselected
abstract funonTabReselected(
tab: ActionBar.Tab!,
ft: FragmentTransaction!
): Unit
Deprecated: Deprecated in Java.
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 |
ActionBar.Tab!: The tab that was reselected. |
ft |
FragmentTransaction!: A FragmentTransaction for queuing fragment operations to execute once this method returns. This FragmentTransaction does not support being added to the back stack. |
onTabSelected
abstract funonTabSelected(
tab: ActionBar.Tab!,
ft: FragmentTransaction!
): Unit
Deprecated: Deprecated in Java.
Called when a tab enters the selected state.
Parameters | |
---|---|
tab |
ActionBar.Tab!: The tab that was selected |
ft |
FragmentTransaction!: A FragmentTransaction for queuing fragment operations to execute during a tab switch. The previous tab's unselect and this tab's select will be executed in a single transaction. This FragmentTransaction does not support being added to the back stack. |
onTabUnselected
abstract funonTabUnselected(
tab: ActionBar.Tab!,
ft: FragmentTransaction!
): Unit
Deprecated: Deprecated in Java.
Called when a tab exits the selected state.
Parameters | |
---|---|
tab |
ActionBar.Tab!: The tab that was unselected |
ft |
FragmentTransaction!: A FragmentTransaction for queuing fragment operations to execute during a tab switch. This tab's unselect and the newly selected tab's select will be executed in a single transaction. This FragmentTransaction does not support being added to the back stack. |