public static interface ActionBar.TabListener
Modifier and Type | Method and Description |
---|---|
void |
onTabReselected(ActionBar.Tab tab,
android.support.v4.app.FragmentTransaction ft)
Called when a tab that is already selected is chosen again by the user.
|
void |
onTabSelected(ActionBar.Tab tab,
android.support.v4.app.FragmentTransaction ft)
Called when a tab enters the selected state.
|
void |
onTabUnselected(ActionBar.Tab tab,
android.support.v4.app.FragmentTransaction ft)
Called when a tab exits the selected state.
|
void onTabSelected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
tab
- The tab that was selectedft
- 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.void onTabUnselected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
tab
- The tab that was unselectedft
- 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.void onTabReselected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
tab
- The tab that was reselected.ft
- A FragmentTransaction
for queuing fragment operations to execute
once this method returns. This FragmentTransaction does not support
being added to the back stack.Copyright © 2011–2014. All rights reserved.