public static interface ExpandableRecyclerAdapter.ExpandCollapseListener
NOTE: This is not called when the expanding/collapsing is triggered programmatically via
ExpandableRecyclerAdapter.expandParent(P) and other methods on the adapter. (Only called for changes triggered
from the viewholder)
Implement this in your Activity or Fragment
to receive these callbacks.
| Modifier and Type | Method and Description |
|---|---|
void |
onParentCollapsed(int parentPosition)
Called when a parent is collapsed.
|
void |
onParentExpanded(int parentPosition)
Called when a parent is expanded.
|
@UiThread void onParentExpanded(int parentPosition)
parentPosition - The position of the parent in the list being expanded@UiThread void onParentCollapsed(int parentPosition)
parentPosition - The position of the parent in the list being collapsed