public class ExpandCollapseController
extends java.lang.Object
ExpandableList and the ExpandableRecyclerViewAdapter and mediates the expanding and collapsing of ExpandableGroup| Constructor and Description |
|---|
ExpandCollapseController(ExpandableList expandableList,
ExpandCollapseListener listener) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGroupExpanded(ExpandableGroup group) |
boolean |
isGroupExpanded(int flatPos) |
boolean |
toggleGroup(ExpandableGroup group) |
boolean |
toggleGroup(int flatPos) |
public ExpandCollapseController(ExpandableList expandableList, ExpandCollapseListener listener)
public boolean isGroupExpanded(ExpandableGroup group)
group - the ExpandableGroup being checked for its collapsed stategroup is expanded, false if it is collapsedpublic boolean isGroupExpanded(int flatPos)
flatPos - the flattened position of an item in the listgroup is expanded, false if it is collapsedpublic boolean toggleGroup(int flatPos)
flatPos - The flat list position of the grouppublic boolean toggleGroup(ExpandableGroup group)