public class

ActionBar

extends LinearLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ greendroid.widget.ActionBar

Summary

Nested Classes
interface ActionBar.OnActionBarListener Interface definition for a callback to be invoked when a user is interacting with an ActionBar
enum ActionBar.Type The Type specifies the layout of the ActionBar. 
Constants
int NONE This constant is deprecated. Adding items to the ActionBar with no identifier does not allow client to retrieve a particular ActionBarItem safely. In order to avoid this problem, ActionBarItem s should be added with methods that requires explicit identifiers such as addItem(ActionBarItem, int) or addItem(greendroid.widget.ActionBarItem.Type, int)
[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
Public Constructors
ActionBar(Context context)
ActionBar(Context context, AttributeSet attrs)
ActionBar(Context context, AttributeSet attrs, int defStyle)
Public Methods
ActionBarItem addItem(ActionBarItem item)
ActionBarItem addItem(ActionBarItem item, int itemId)
ActionBarItem addItem(ActionBarItem.Type actionBarItemType)
ActionBarItem addItem(ActionBarItem.Type actionBarItemType, int itemId)
ActionBarItem getItem(int position)
ActionBarItem newActionBarItem(Class<? extends ActionBarItem> klass)
void removeItem(ActionBarItem item)
void removeItem(int position)
void setOnActionBarListener(ActionBar.OnActionBarListener listener)
Register a callback to be invoked when the user interacts with the ActionBar.
void setTitle(CharSequence title)
void setType(ActionBar.Type type)
Protected Methods
void onFinishInflate()
[Expand]
Inherited Methods
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Constants

public static final int NONE

This constant is deprecated.
Adding items to the ActionBar with no identifier does not allow client to retrieve a particular ActionBarItem safely. In order to avoid this problem, ActionBarItem s should be added with methods that requires explicit identifiers such as addItem(ActionBarItem, int) or addItem(greendroid.widget.ActionBarItem.Type, int)

Default identifier applied to a newly added ActionBarItems.

Constant Value: 0 (0x00000000)

Public Constructors

public ActionBar (Context context)

public ActionBar (Context context, AttributeSet attrs)

public ActionBar (Context context, AttributeSet attrs, int defStyle)

Public Methods

public ActionBarItem addItem (ActionBarItem item)

public ActionBarItem addItem (ActionBarItem item, int itemId)

public ActionBarItem addItem (ActionBarItem.Type actionBarItemType)

public ActionBarItem addItem (ActionBarItem.Type actionBarItemType, int itemId)

public ActionBarItem getItem (int position)

public ActionBarItem newActionBarItem (Class<? extends ActionBarItem> klass)

public void removeItem (ActionBarItem item)

public void removeItem (int position)

public void setOnActionBarListener (ActionBar.OnActionBarListener listener)

Register a callback to be invoked when the user interacts with the ActionBar.

Parameters
listener The callback that will run.

public void setTitle (CharSequence title)

Parameters
title The title to set to this ActionBar

public void setType (ActionBar.Type type)

Protected Methods

protected void onFinishInflate ()