org.solovyev.android.sherlock
Class ActionBarNavigationFragmentListener<T extends Fragment>

java.lang.Object
  extended by org.solovyev.android.sherlock.ActionBarNavigationFragmentListener<T>
All Implemented Interfaces:
ActionBar.OnNavigationListener

public class ActionBarNavigationFragmentListener<T extends Fragment>
extends Object
implements ActionBar.OnNavigationListener

User: serso Date: 8/7/12 Time: 12:01 PM


Constructor Summary
ActionBarNavigationFragmentListener(SherlockFragmentActivity activity, List<? extends FragmentItem> items, List<String> itemLabels)
           
 
Method Summary
 ListAdapter getAdapter()
           
 boolean onNavigationItemSelected(int itemPosition, long itemId)
          This method is called whenever a navigation item in your action bar is selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionBarNavigationFragmentListener

public ActionBarNavigationFragmentListener(@Nonnull
                                           SherlockFragmentActivity activity,
                                           @Nonnull
                                           List<? extends FragmentItem> items,
                                           @Nonnull
                                           List<String> itemLabels)
Method Detail

getAdapter

@Nonnull
public ListAdapter getAdapter()

onNavigationItemSelected

public boolean onNavigationItemSelected(int itemPosition,
                                        long itemId)
Description copied from interface: ActionBar.OnNavigationListener
This method is called whenever a navigation item in your action bar is selected.

Specified by:
onNavigationItemSelected in interface ActionBar.OnNavigationListener
Parameters:
itemPosition - Position of the item clicked.
itemId - ID of the item clicked.
Returns:
True if the event was handled, false otherwise.


Copyright © 2014 se.solovyev. All Rights Reserved.