public static interface

ActionBar.OnActionBarListener

greendroid.widget.ActionBar.OnActionBarListener

Class Overview

Interface definition for a callback to be invoked when a user is interacting with an ActionBar.

Summary

Constants
int HOME_ITEM Index used to indicate the ActionBar home item has been clicked.
Public Methods
abstract void onActionBarItemClicked(int position)
Clients may listen to this method in order to be notified the user has clicked on an item.

Constants

public static final int HOME_ITEM

Index used to indicate the ActionBar home item has been clicked.

Constant Value: -1 (0xffffffff)

Public Methods

public abstract void onActionBarItemClicked (int position)

Clients may listen to this method in order to be notified the user has clicked on an item.

Parameters
position The position of the item in the action bar. HOME_ITEM means the user pressed the "Home" button. 0 means the user clicked the first ActionBarItem (the leftmost item) and so on.