org.solovyev.android.sherlock.tabs
Class ActionBarFragmentTabListener

java.lang.Object
  extended by org.solovyev.android.sherlock.tabs.ActionBarFragmentTabListener
All Implemented Interfaces:
ActionBar.TabListener

public class ActionBarFragmentTabListener
extends Object
implements ActionBar.TabListener

User: serso Date: 8/4/12 Time: 12:42 PM


Constructor Summary
ActionBarFragmentTabListener(SherlockFragmentActivity activity, String tag, Class<? extends Fragment> fragmentClass, android.os.Bundle fragmentArgs, Integer parentViewId)
          Constructor used each time a new tab is created.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionBarFragmentTabListener

public ActionBarFragmentTabListener(@Nonnull
                                    SherlockFragmentActivity activity,
                                    @Nonnull
                                    String tag,
                                    @Nonnull
                                    Class<? extends Fragment> fragmentClass,
                                    @Nullable
                                    android.os.Bundle fragmentArgs,
                                    @Nullable
                                    Integer parentViewId)
Constructor used each time a new tab is created.

Parameters:
activity - The host Activity, used to instantiate the fragment
tag - The identifier tag for the fragment
fragmentClass - The fragment's Class, used to instantiate the fragment
fragmentArgs - arguments to be passed to fragment
parentViewId - parent view id
Method Detail

onTabSelected

public void onTabSelected(ActionBar.Tab tab,
                          FragmentTransaction ft)
Description copied from interface: ActionBar.TabListener
Called when a tab enters the selected state.

Specified by:
onTabSelected in interface ActionBar.TabListener
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.

onTabUnselected

public void onTabUnselected(ActionBar.Tab tab,
                            FragmentTransaction ft)
Description copied from interface: ActionBar.TabListener
Called when a tab exits the selected state.

Specified by:
onTabUnselected in interface ActionBar.TabListener
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.

onTabReselected

public void onTabReselected(ActionBar.Tab tab,
                            FragmentTransaction ft)
Description copied from interface: ActionBar.TabListener
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.

Specified by:
onTabReselected in interface ActionBar.TabListener
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.


Copyright © 2014 se.solovyev. All Rights Reserved.