Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

ActionBar.TabListener

android.app.ActionBar.TabListener

Class Overview

Callback interface invoked when a tab is focused, unfocused, added, or removed.

Summary

Public Methods
abstract void onTabReselected ( ActionBar.Tab tab, FragmentTransaction ft)
Called when a tab that is already selected is chosen again by the user.
abstract void onTabSelected ( ActionBar.Tab tab, FragmentTransaction ft)
Called when a tab enters the selected state.
abstract void onTabUnselected ( ActionBar.Tab tab, FragmentTransaction ft)
Called when a tab exits the selected state.

Public Methods

public abstract void onTabReselected ( ActionBar.Tab tab, FragmentTransaction ft)

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.
ft A FragmentTransaction for queuing fragment operations to execute once this method returns. This FragmentTransaction does not support being added to the back stack.

public abstract void onTabSelected ( ActionBar.Tab tab, FragmentTransaction ft)

Called when a tab enters the selected state.

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

public abstract void onTabUnselected ( ActionBar.Tab tab, FragmentTransaction ft)

Called when a tab exits the selected state.

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