android.support.v7.app.ActionBar.TabListener |
Callback interface invoked when an
ActionBar.Tab
is focused, unfocused, added, or
removed.
Note:
This interface is included in the
support library
for compatibility
with API level 7 and higher. If you're developing your app for API level 11 and higher
only
, you should instead use the framework
ActionBar.TabListener
interface.
For information about how to use action bar tabs, read the Action Bar API guide.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Called when a tab that is already selected is chosen again by the user.
|
||||||||||
|
Called when a tab enters the selected state.
|
||||||||||
|
Called when a tab exits the selected state.
|
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.
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.
|
Called when a tab enters the selected state.
tab | The tab that was selected |
---|---|
ft |
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.
|
Called when a tab exits the selected state.
tab | The tab that was unselected |
---|---|
ft |
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.
|