java.lang.Object | ||
android.widget.BaseExpandableListAdapter | ExpandableListAdapter |
Base class for a ExpandableListAdapter used to provide data and Views from some data to an expandable list view.
Adapters inheriting this class should verify that the base implementations of getCombinedChildId(long, long) and getCombinedGroupId(long) are correct in generating unique IDs from the group/children IDs.
BaseExpandableListAdapter() |
boolean | areAllItemsEnabled() | |||||
long | getCombinedChildId(long groupId, long childId) | |||||
Override this method if you foresee a clash in IDs based on this scheme:
Base implementation returns a long: |
||||||
long | getCombinedGroupId(long groupId) | |||||
Override this method if you foresee a clash in IDs based on this scheme:
Base implementation returns a long: |
||||||
boolean | isEmpty() | |||||
void | notifyDataSetChanged() | |||||
void | notifyDataSetInvalidated() | |||||
void | onGroupCollapsed(int groupPosition) | |||||
Called when a group is collapsed. | ||||||
void | onGroupExpanded(int groupPosition) | |||||
Called when a group is expanded. | ||||||
void | registerDataSetObserver(DataSetObserver observer) | |||||
void | unregisterDataSetObserver(DataSetObserver observer) |
Base implementation returns a long:
Gets an ID for a child that is unique across any item (either group or child) that is in this list. Expandable lists require each item (group or child) to have a unique ID among all children and groups in the list. This method is responsible for returning that unique ID given a child's ID and its group's ID. Furthermore, if hasStableIds() is true, the returned ID must be stable as well.
Base implementation returns a long:
Gets an ID for a group that is unique across any item (either group or child) that is in this list. Expandable lists require each item (group or child) to have a unique ID among all children and groups in the list. This method is responsible for returning that unique ID given a group's ID. Furthermore, if hasStableIds() is true, the returned ID must be stable as well.
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:48 |