java.lang.Object | ||||||
↳ | android.content.Context | |||||
↳ | android.content.ContextWrapper | |||||
↳ | android.view.ContextThemeWrapper | |||||
↳ | android.app.Activity | |||||
↳ | greendroid.app.GDActivity | |||||
↳ | greendroid.app.GDListActivity |
An equivalent to ListActivity that manages a ListView.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the identifier of the layout that needs to be created for this
ActionBarActivity | |||||||||||
Get the ListAdapter associated with this activity's ListView.
| |||||||||||
Get the activity's ListView widget.
| |||||||||||
Get the ListAdapter row ID of the currently selected list item.
| |||||||||||
Get the position of the currently selected list item.
| |||||||||||
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. | |||||||||||
Provides the Adapter for the ListView handled by this
GDListActivity | |||||||||||
Set the currently selected list item to the specified position with the
adapter's data
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method will be called when an item in the list is selected.
| |||||||||||
Verify the given layout contains everything needed by this Activity.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Returns the identifier of the layout that needs to be created for this
ActionBarActivity
Get the ListAdapter associated with this activity's ListView.
Get the activity's ListView widget.
GDListActivity
Get the ListAdapter row ID of the currently selected list item.
Get the position of the currently selected list item.
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. |
---|
Provides the Adapter for the ListView handled by this
GDListActivity
adapter | The ListAdapter to set. |
---|
Set the currently selected list item to the specified position with the adapter's data
position | The position to select in the managed ListView |
---|
This method will be called when an item in the list is selected. Subclasses should override. Subclasses can call getListView().getItemAtPosition(position) if they need to access the data associated with the selected item.
l | The ListView where the click happened |
---|---|
v | The view that was clicked within the ListView |
position | The position of the view in the list |
id | The row id of the item that was clicked |
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.