java.lang.Object | ||
↳ | android.widget.BaseAdapter | |
↳ | com.android.contacts.GroupingListAdapter |
Maintains a list that groups adjacent items sharing the same value of a "group-by" field. The list has three types of elements: stand-alone, group header and group child. Groups are collapsible and collapsed by default.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GroupingListAdapter.PositionMetadata | Information about a specific list item: is it a group, if so is it expanded. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ITEM_TYPE_GROUP_HEADER | ||||||||||
int | ITEM_TYPE_IN_GROUP | ||||||||||
int | ITEM_TYPE_STANDALONE |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.widget.Adapter
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mChangeObserver | |||||||||||
mDataSetObserver |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Given a position of a groups header in the list, returns the size of
the corresponding group.
| |||||||||||
Returns true if the specified position in the list corresponds to a
group header.
| |||||||||||
Figures out whether the item at the specified position represents a
stand-alone element, a group or a group child.
| |||||||||||
Mark group as expanded if it is collapsed and vice versa.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Records information about grouping in the list.
| |||||||||||
Finds all groups of adjacent items in the cursor and calls
addGroup(int, int, boolean) for
each of them. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.widget.BaseAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.widget.Adapter
| |||||||||||
From interface
android.widget.ListAdapter
| |||||||||||
From interface
android.widget.SpinnerAdapter
|
Given a position of a groups header in the list, returns the size of the corresponding group.
Returns true if the specified position in the list corresponds to a group header.
Figures out whether the item at the specified position represents a stand-alone element, a group or a group child. Also computes the corresponding cursor position.
Mark group as expanded if it is collapsed and vice versa.
Records information about grouping in the list. Should be called by the overridden
addGroups(Cursor)
method.
Finds all groups of adjacent items in the cursor and calls addGroup(int, int, boolean)
for
each of them.