android.widget
public
abstract
class
android.widget.ResourceCursorTreeAdapter
A fairly simple ExpandableListAdapter that creates views defined in an XML
file. You can specify the XML file that defines the appearance of the views.
Known Direct Subclasses
| SimpleCursorTreeAdapter |
An easy adapter to map columns from a cursor to TextViews or ImageViews
defined in an XML file. |
Summary
Public Constructors
| |
|
|
|
|
ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout) |
| |
|
|
|
|
ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout) |
| |
|
|
|
|
ResourceCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, int childLayout) |
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout)
Constructor.
Parameters
| context
| The context where the ListView associated with this
SimpleListItemFactory is running |
| cursor
| The database cursor |
| collapsedGroupLayout
| resource identifier of a layout file that
defines the views for collapsed groups. |
| expandedGroupLayout
| resource identifier of a layout file that
defines the views for expanded groups. |
| childLayout
| resource identifier of a layout file that defines the
views for all children but the last.. |
| lastChildLayout
| resource identifier of a layout file that defines
the views for the last child of a group.
|
public
ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout)
Constructor.
Parameters
| context
| The context where the ListView associated with this
SimpleListItemFactory is running |
| cursor
| The database cursor |
| collapsedGroupLayout
| resource identifier of a layout file that
defines the views for collapsed groups. |
| expandedGroupLayout
| resource identifier of a layout file that
defines the views for expanded groups. |
| childLayout
| resource identifier of a layout file that defines the
views for all children.
|
public
ResourceCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, int childLayout)
Constructor.
Parameters
| context
| The context where the ListView associated with this
SimpleListItemFactory is running |
| cursor
| The database cursor |
| groupLayout
| resource identifier of a layout file that defines the
views for all groups. |
| childLayout
| resource identifier of a layout file that defines the
views for all children.
|
Public Methods
public
View
newChildView(Context context, Cursor cursor, boolean isLastChild, ViewGroup parent)
Makes a new child view to hold the data pointed to by cursor.
Parameters
| context
| Interface to application's global information |
| cursor
| The cursor from which to get the data. The cursor is
already moved to the correct position. |
| isLastChild
| Whether the child is the last child within its group. |
| parent
| The parent to which the new view is attached to |
public
View
newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent)
Makes a new group view to hold the group data pointed to by cursor.
Parameters
| context
| Interface to application's global information |
| cursor
| The group cursor from which to get the data. The cursor is
already moved to the correct position. |
| isExpanded
| Whether the group is expanded. |
| parent
| The parent to which the new view is attached to |