Java android.widget ExpandableListView fields, constructors, methods, implement or subclass

Example usage for Java android.widget ExpandableListView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget ExpandableListView.

The text is from its open source code.

Subclass

android.widget.ExpandableListView has subclasses.
Click this link to see all its subclasses.

Field

intPACKED_POSITION_TYPE_GROUP
The packed position represents a group.
intPACKED_POSITION_TYPE_CHILD
The packed position represents a child.
intPACKED_POSITION_TYPE_NULL
The packed position represents a neither/null/no preference.
longPACKED_POSITION_VALUE_NULL
The value for a packed position that represents neither/null/no preference.

Constructor

Method

booleancollapseGroup(int groupPos)
Collapse a group in the grouped list view
booleanexpandGroup(int groupPos)
Expand a group in the grouped list view
booleanexpandGroup(int groupPos, boolean animate)
Expand a group in the grouped list view
ListAdaptergetAdapter()
This method should not be used, use #getExpandableListAdapter() .
ExpandableListAdaptergetExpandableListAdapter()
Gets the adapter that provides data to this view.
longgetExpandableListPosition(int flatListPosition)
Converts a flat list position (the raw position of an item (child or group) in the list) to a group and/or child position (represented in a packed position).
intgetFlatListPosition(long packedPosition)
Converts a group and/or child position to a flat list position.
intgetPackedPositionChild(long packedPosition)
Gets the child position from a packed position that is of #PACKED_POSITION_TYPE_CHILD type (use #getPackedPositionType(long) ).
longgetPackedPositionForChild(int groupPosition, int childPosition)
Returns the packed position representation of a child's position.
longgetPackedPositionForGroup(int groupPosition)
Returns the packed position representation of a group's position.
intgetPackedPositionGroup(long packedPosition)
Gets the group position from a packed position.
intgetPackedPositionType(long packedPosition)
Gets the type of a packed position.
booleanisGroupExpanded(int groupPosition)
Whether the given group is currently expanded.
voidsetAdapter(ListAdapter adapter)
This overloaded method should not be used, instead use #setAdapter(ExpandableListAdapter) .
voidsetAdapter(ExpandableListAdapter adapter)
Sets the adapter that provides data to this view.
voidsetGroupIndicator(Drawable groupIndicator)
Sets the indicator to be drawn next to a group.
voidsetOnChildClickListener(OnChildClickListener onChildClickListener)
voidsetOnGroupClickListener(OnGroupClickListener onGroupClickListener)
voidsetOnGroupCollapseListener(OnGroupCollapseListener onGroupCollapseListener)
voidsetOnGroupExpandListener(OnGroupExpandListener onGroupExpandListener)
booleansetSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup)
Sets the selection to the specified child.
voidsetSelectedGroup(int groupPosition)
Sets the selection to the specified group.