greendroid.app.ActionBarActivity |
Known Indirect Subclasses |
Defines all methods related to Activities embedding an ActionBar
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | GD_ACTION_BAR_TITLE | The optional title of the launched ActionBarActivity | |||||||||
String | GD_ACTION_BAR_VISIBILITY | An integer that can be used to force the ActionBar to a particular visibility. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a new item to the
ActionBar . | |||||||||||
Add a new item to the
ActionBar . | |||||||||||
Adds a new item of type type to the
ActionBar . | |||||||||||
Adds a new item of type type to the
ActionBar . | |||||||||||
Returns the identifier of the layout that needs to be created for this
ActionBarActivity | |||||||||||
Returns the
ActionBar . | |||||||||||
Returns the content view.
| |||||||||||
A simple utility method that casts the Application returned by
Activity.getApplication() into a
GDApplication | |||||||||||
Clients may use this method to listen to
ActionBarItem s clicks. | |||||||||||
Called at the end of the
onContentChanged() method. | |||||||||||
Called at the beginning of the
onContentChanged()
method. |
The optional title of the launched ActionBarActivity
Returns the identifier of the layout that needs to be created for this
ActionBarActivity
Returns the ActionBar
. Listening to ActionBar
events
should be done via the
onHandleActionBarItemClick(ActionBarItem, int)
method. Most of the time, this method don't need to be used directly.
ActionBar
currently displayed on screen
Returns the content view. Please note the content view is not the entire
view but a FrameLayout that contains everything but the
ActionBar
.
A simple utility method that casts the Application returned by
Activity.getApplication() into a GDApplication
GDApplication
Clients may use this method to listen to ActionBarItem
s clicks.
item | The ActionBarItem that has been clicked |
---|---|
position | The position of the clicked item. This number is equal or greater to zero. 0 is the leftmost item. |
ActionBarItem
at position position. Otherwise it
returns false.
Called at the end of the onContentChanged()
method. This
may be use to initialize the content of the layout (titles, etc.)
Called at the beginning of the onContentChanged()
method. This may be used to initialize all references on elements.