java.lang.Object | ||||||
↳ | android.content.Context | |||||
↳ | android.content.ContextWrapper | |||||
↳ | android.view.ContextThemeWrapper | |||||
↳ | android.app.Activity | |||||
↳ | greendroid.app.GDActivity | |||||
↳ | greendroid.app.GDExpandableListActivity |
A GDActivity
equivalent to ExpandableListActivity that manages an
ExpandableListView.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.app.Activity
| |||||||||||
From class
android.content.Context
| |||||||||||
From interface
greendroid.app.ActionBarActivity
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the identifier of the layout that needs to be created for this
ActionBarActivity | |||||||||||
Get the ExpandableListAdapter associated with this activity's
ExpandableListView.
| |||||||||||
Get the activity's expandable list view widget.
| |||||||||||
Gets the ID of the currently selected group or child.
| |||||||||||
Gets the position (in packed position representation) of the currently
selected group or child.
| |||||||||||
Override this for receiving callbacks when a child has been clicked.
| |||||||||||
Override this to populate the context menu when an item is long pressed.
| |||||||||||
Override this for receiving callbacks when a group has been collapsed.
| |||||||||||
Override this for receiving callbacks when a group has been expanded.
| |||||||||||
Called at the end of the
onContentChanged() method. | |||||||||||
Called at the beginning of the
onContentChanged()
method. | |||||||||||
Set the activity content to an explicit view. | |||||||||||
Set the activity content to an explicit view. | |||||||||||
Set the activity content from a layout resource. | |||||||||||
Provide the adapter for the expandable list.
| |||||||||||
Sets the selection to the specified child.
| |||||||||||
Sets the selection to the specified group.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Verify the given layout contains everything needed by this Activity.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
greendroid.app.GDActivity
| |||||||||||
From class
android.app.Activity
| |||||||||||
From class
android.view.ContextThemeWrapper
| |||||||||||
From class
android.content.ContextWrapper
| |||||||||||
From class
android.content.Context
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.content.ComponentCallbacks
| |||||||||||
From interface
android.view.KeyEvent.Callback
| |||||||||||
From interface
android.view.LayoutInflater.Factory
| |||||||||||
From interface
android.view.View.OnCreateContextMenuListener
| |||||||||||
From interface
android.view.Window.Callback
| |||||||||||
From interface
android.widget.ExpandableListView.OnChildClickListener
| |||||||||||
From interface
android.widget.ExpandableListView.OnGroupCollapseListener
| |||||||||||
From interface
android.widget.ExpandableListView.OnGroupExpandListener
| |||||||||||
From interface
greendroid.app.ActionBarActivity
|
Returns the identifier of the layout that needs to be created for this
ActionBarActivity
Get the ExpandableListAdapter associated with this activity's ExpandableListView.
Get the activity's expandable list view widget. This can be used to get the selection, set the selection, and many other useful functions.
Gets the ID of the currently selected group or child.
Gets the position (in packed position representation) of the currently selected group or child. Use ExpandableListView#getPackedPositionType, ExpandableListView#getPackedPositionGroup, and ExpandableListView#getPackedPositionChild to unpack the returned packed position.
Override this for receiving callbacks when a child has been clicked.
Override this to populate the context menu when an item is long pressed. menuInfo will contain an android.widget.ExpandableListView.ExpandableListContextMenuInfo whose packedPosition is a packed position that should be used with ExpandableListView#getPackedPositionType(long) and the other similar methods.
Override this for receiving callbacks when a group has been collapsed.
Override this for receiving callbacks when a group has been expanded.
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.
Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy.
This method is an equivalent to setContentView(View) that automatically
wraps the given layout in an ActionBarHost
if needed.
view | The desired content to display. |
---|
Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy.
This method is an equivalent to setContentView(View, LayoutParams) that
automatically wraps the given layout in an ActionBarHost
if
needed.
view | The desired content to display. |
---|---|
params | Layout parameters for the view. |
Set the activity content from a layout resource. The resource will be inflated, adding all top-level views to the activity.
This method is an equivalent to setContentView(int) that automatically
wraps the given layout in an ActionBarHost
if needed..
resID | Resource ID to be inflated. |
---|
Provide the adapter for the expandable list.
Sets the selection to the specified child. If the child is in a collapsed group, the group will only be expanded and child subsequently selected if shouldExpandGroup is set to true, otherwise the method will return false.
groupPosition | The position of the group that contains the child. |
---|---|
childPosition | The position of the child within the group. |
shouldExpandGroup | Whether the child's group should be expanded if it is collapsed. |
Sets the selection to the specified group.
groupPosition | The position of the group that should be selected. |
---|
Verify the given layout contains everything needed by this Activity. A
GDActivity, for instance, manages an ActionBarHost
. As a result
this method will return true of the current layout contains such a
widget.