public abstract class ResourceCursorTreeAdapter extends CursorTreeAdapter
Constructor and Description |
---|
ResourceCursorTreeAdapter(Context context,
Cursor cursor,
int groupLayout,
int childLayout)
Constructor.
|
ResourceCursorTreeAdapter(Context context,
Cursor cursor,
int collapsedGroupLayout,
int expandedGroupLayout,
int childLayout)
Constructor.
|
ResourceCursorTreeAdapter(Context context,
Cursor cursor,
int collapsedGroupLayout,
int expandedGroupLayout,
int childLayout,
int lastChildLayout)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
View |
newChildView(Context context,
Cursor cursor,
boolean isLastChild,
ViewGroup parent)
Makes a new child view to hold the data pointed to by cursor.
|
View |
newGroupView(Context context,
Cursor cursor,
boolean isExpanded,
ViewGroup parent)
Makes a new group view to hold the group data pointed to by cursor.
|
bindChildView, bindGroupView, changeCursor, convertToString, getChild, getChildId, getChildrenCount, getChildrenCursor, getChildView, getCursor, getFilter, getFilterQueryProvider, getGroup, getGroupCount, getGroupId, getGroupView, hasStableIds, isChildSelectable, notifyDataSetChanged, notifyDataSetChanged, notifyDataSetInvalidated, onGroupCollapsed, runQueryOnBackgroundThread, setChildrenCursor, setFilterQueryProvider, setGroupCursor
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, onGroupExpanded, registerDataSetObserver, unregisterDataSetObserver
public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout)
context
- The context where the ListView associated with this
SimpleListItemFactory is runningcursor
- The database cursorcollapsedGroupLayout
- 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)
context
- The context where the ListView associated with this
SimpleListItemFactory is runningcursor
- The database cursorcollapsedGroupLayout
- 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)
context
- The context where the ListView associated with this
SimpleListItemFactory is runningcursor
- The database cursorgroupLayout
- 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 View newChildView(Context context, Cursor cursor, boolean isLastChild, ViewGroup parent)
CursorTreeAdapter
newChildView
in class CursorTreeAdapter
context
- Interface to application's global informationcursor
- 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 topublic View newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent)
CursorTreeAdapter
newGroupView
in class CursorTreeAdapter
context
- Interface to application's global informationcursor
- 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