java.lang.Object | |||||||
↳ | android.content.Context | ||||||
↳ | android.content.ContextWrapper | ||||||
↳ | android.view.ContextThemeWrapper | ||||||
↳ | android.app.Activity | ||||||
↳ | android.app.ActivityGroup | ||||||
↳ | android.app.TabActivity | ||||||
↳ | greendroid.app.GDTabActivity |
An equivalent to a TabActivity that manages fancy tabs and an
ActionBar
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 . | |||||||||||
Add a new tab to this GDTabActivity
| |||||||||||
Add a new tab to this GDTabActivity
| |||||||||||
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. | |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Callback allowing client to create their own tabs.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Add a new tab to this GDTabActivity
tag | The tag associated this the new tab |
---|---|
labelId | A resource ID to the label of the new tab |
intent | The Intent used to start the content of the tab |
Add a new tab to this GDTabActivity
tag | The tag associated this the new tab |
---|---|
label | The label of the new tab |
intent | The Intent used to start the content of the tab |
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.
Callback allowing client to create their own tabs.
tag | The tag of the tab to create |
---|---|
label | The label that need to be displayed in the tab |
parent | The parent in which the tab will be added.Please note you shouldn't add the newly created/inflated View to the parent. GDTabActivity will deal with this automatically. |