public class ActionBarFragmentTabListener extends Object implements ActionBar.TabListener
| Constructor and Description |
|---|
ActionBarFragmentTabListener(SherlockFragmentActivity activity,
String tag,
Class<? extends Fragment> fragmentClass,
android.os.Bundle fragmentArgs,
Integer parentViewId)
Constructor used each time a new tab is created.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onTabReselected(ActionBar.Tab tab,
FragmentTransaction ft)
Called when a tab that is already selected is chosen again by the user.
|
void |
onTabSelected(ActionBar.Tab tab,
FragmentTransaction ft)
Called when a tab enters the selected state.
|
void |
onTabUnselected(ActionBar.Tab tab,
FragmentTransaction ft)
Called when a tab exits the selected state.
|
public ActionBarFragmentTabListener(@Nonnull SherlockFragmentActivity activity, @Nonnull String tag, @Nonnull Class<? extends Fragment> fragmentClass, @Nullable android.os.Bundle fragmentArgs, @Nullable Integer parentViewId)
activity - The host Activity, used to instantiate the fragmenttag - The identifier tag for the fragmentfragmentClass - The fragment's Class, used to instantiate the fragmentfragmentArgs - arguments to be passed to fragmentparentViewId - parent view idpublic void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft)
ActionBar.TabListeneronTabSelected in interface ActionBar.TabListenertab - 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.public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft)
ActionBar.TabListeneronTabUnselected in interface ActionBar.TabListenertab - 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.public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft)
ActionBar.TabListeneronTabReselected in interface ActionBar.TabListenertab - 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 © 2015 se.solovyev. All Rights Reserved.