Skip navigation links
C E G I M N O P S 

C

ChildViewHolder - Class in com.bignerdranch.expandablerecyclerview.ViewHolder
ViewHolder for a child list item.
ChildViewHolder(View) - Constructor for class com.bignerdranch.expandablerecyclerview.ViewHolder.ChildViewHolder
Default constructor.
collapseAllParents() - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Collapses all parents in the list.
collapseParent(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Collapses the parent with the specified index in the list of parents.
collapseParent(ParentListItem) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Collapses the parent associated with a specified ParentListItem in the list of parents.
collapseView() - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
Triggers collapse of the parent.
com.bignerdranch.expandablerecyclerview.Adapter - package com.bignerdranch.expandablerecyclerview.Adapter
 
com.bignerdranch.expandablerecyclerview.Model - package com.bignerdranch.expandablerecyclerview.Model
 
com.bignerdranch.expandablerecyclerview.ViewHolder - package com.bignerdranch.expandablerecyclerview.ViewHolder
 

E

ExpandableRecyclerAdapter<PVH extends ParentViewHolder,CVH extends ChildViewHolder> - Class in com.bignerdranch.expandablerecyclerview.Adapter
RecyclerView.Adapter implementation that adds the ability to expand and collapse list items.
ExpandableRecyclerAdapter(List<? extends ParentListItem>) - Constructor for class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Primary constructor.
ExpandableRecyclerAdapter.ExpandCollapseListener - Interface in com.bignerdranch.expandablerecyclerview.Adapter
Allows objects to register themselves as expand/collapse listeners to be notified of change events.
ExpandableRecyclerAdapterHelper - Class in com.bignerdranch.expandablerecyclerview.Adapter
ExpandableRecyclerAdapterHelper() - Constructor for class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapterHelper
 
expandAllParents() - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Expands all parents in the list.
expandParent(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Expands the parent with the specified index in the list of parents.
expandParent(ParentListItem) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Expands the parent associated with a specified ParentListItem in the list of parents.
expandView() - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
Triggers expansion of the parent.

G

generateParentChildItemList(List<? extends ParentListItem>) - Static method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapterHelper
Generates a full list of all ParentListItem objects and their children, in order.
getChildItemList() - Method in interface com.bignerdranch.expandablerecyclerview.Model.ParentListItem
Getter for the list of this parent list item's child list items.
getChildItemList() - Method in class com.bignerdranch.expandablerecyclerview.Model.ParentWrapper
 
getItemCount() - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Gets the number of parent and child objects currently expanded.
getItemViewType(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Gets the view type of the item at the given position.
getListItem(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Gets the list item held at the specified adapter position.
getParentItemList() - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Gets the list of ParentItems that is backing this adapter.
getParentListItem() - Method in class com.bignerdranch.expandablerecyclerview.Model.ParentWrapper
Gets the ParentListItem being wrapped.
getParentListItemExpandCollapseListener() - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder

I

isExpanded() - Method in class com.bignerdranch.expandablerecyclerview.Model.ParentWrapper
Gets the expanded state associated with the ParentListItem.
isExpanded() - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
Returns expanded state for the ParentListItem corresponding to this ParentViewHolder.
isInitiallyExpanded() - Method in interface com.bignerdranch.expandablerecyclerview.Model.ParentListItem
Getter used to determine if this ParentListItem's View should show up initially as expanded.
isInitiallyExpanded() - Method in class com.bignerdranch.expandablerecyclerview.Model.ParentWrapper
 

M

mItemList - Variable in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
A List of all currently expanded ParentListItem objects and their children, in order.

N

notifyChildItemChanged(int, int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Notify any registered observers that the ParentListItem at parentPosition has a child located at childPosition that has changed.
notifyChildItemInserted(int, int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Notify any registered observers that the ParentListItem reflected at parentPosition has a ChildItem that has been newly inserted at childPosition.
notifyChildItemRemoved(int, int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Notify any registered observers that the ParentListItem located at parentPosition has a ChildItem that has been removed from the data set, previously located at childPosition.
notifyParentItemChanged(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Notify any registered observers that the ParentListItem at parentPosition has changed.
notifyParentItemInserted(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Notify any registered observers that the ParentListItem reflected at parentPosition has been newly inserted.
notifyParentItemRangeInserted(int, int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Notify any registered observers that the currently reflected itemCount ParentListItems starting at parentPositionStart have been newly inserted.
notifyParentItemRemoved(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Notify any registered observers that the ParentListItem previously located at parentPosition has been removed from the data set.

O

onAttachedToRecyclerView(RecyclerView) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Implementation of Adapter#onAttachedToRecyclerView(RecyclerView).
onBindChildViewHolder(CVH, int, Object) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Callback called from onBindViewHolder(RecyclerView.ViewHolder, int) when the list item bound to is a child.
onBindParentViewHolder(PVH, int, ParentListItem) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Callback called from onBindViewHolder(RecyclerView.ViewHolder, int) when the list item bound to is a parent.
onBindViewHolder(RecyclerView.ViewHolder, int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Implementation of Adapter.onBindViewHolder(RecyclerView.ViewHolder, int) that determines if the list item is a parent or a child and calls through to the appropriate implementation of either ExpandableRecyclerAdapter.onBindParentViewHolder(ParentViewHolder, int, ParentListItem) or ExpandableRecyclerAdapter.onBindChildViewHolder(ChildViewHolder, int, Object).
onClick(View) - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
View.OnClickListener to listen for click events on the entire parent View.
onCreateChildViewHolder(ViewGroup) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Callback called from ExpandableRecyclerAdapter.onCreateViewHolder(ViewGroup, int) when the list item created is a child.
onCreateParentViewHolder(ViewGroup) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Callback called from ExpandableRecyclerAdapter.onCreateViewHolder(ViewGroup, int) when the list item created is a parent.
onCreateViewHolder(ViewGroup, int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Implementation of Adapter.onCreateViewHolder(ViewGroup, int) that determines if the list item is a parent or a child and calls through to the appropriate implementation of either ExpandableRecyclerAdapter.onCreateParentViewHolder(ViewGroup) or ExpandableRecyclerAdapter.onCreateChildViewHolder(ViewGroup).
onDetachedFromRecyclerView(RecyclerView) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Implementation of Adapter.onDetachedFromRecyclerView(RecyclerView)
onExpansionToggled(boolean) - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
Callback triggered when expansion state is changed, but not during initialization.
onListItemCollapsed(int) - Method in interface com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter.ExpandCollapseListener
Called when a list item is collapsed.
onListItemExpanded(int) - Method in interface com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter.ExpandCollapseListener
Called when a list item is expanded.
onParentListItemCollapsed(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
onParentListItemCollapsed(int) - Method in interface com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder.ParentListItemExpandCollapseListener
Called when a list item is collapsed.
onParentListItemExpanded(int) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
onParentListItemExpanded(int) - Method in interface com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder.ParentListItemExpandCollapseListener
Called when a list item is expanded.
onRestoreInstanceState(Bundle) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Fetches the expandable state map from the saved instance state Bundle and restores the expanded states of all of the list items.
onSaveInstanceState(Bundle) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
Stores the expanded state map across state loss.

P

ParentListItem - Interface in com.bignerdranch.expandablerecyclerview.Model
Interface for implementing required methods in a parent list item.
ParentViewHolder - Class in com.bignerdranch.expandablerecyclerview.ViewHolder
ViewHolder for a ParentListItem Keeps track of expanded state and holds callbacks which can be used to trigger expansion-based events.
ParentViewHolder(View) - Constructor for class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
Default constructor.
ParentViewHolder.ParentListItemExpandCollapseListener - Interface in com.bignerdranch.expandablerecyclerview.ViewHolder
Empowers ExpandableRecyclerAdapter implementations to be notified of expand/collapse state change events.
ParentWrapper - Class in com.bignerdranch.expandablerecyclerview.Model
Wrapper used to link expanded state with a ParentListItem.
ParentWrapper(ParentListItem) - Constructor for class com.bignerdranch.expandablerecyclerview.Model.ParentWrapper
Default constructor.

S

setExpandCollapseListener(ExpandableRecyclerAdapter.ExpandCollapseListener) - Method in class com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
 
setExpanded(boolean) - Method in class com.bignerdranch.expandablerecyclerview.Model.ParentWrapper
Sets the expanded state associated with the ParentListItem.
setExpanded(boolean) - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
Setter method for expanded state, used for initialization of expanded state.
setMainItemClickToExpand() - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
Sets a View.OnClickListener on the entire parent view to trigger expansion.
setParentListItem(ParentListItem) - Method in class com.bignerdranch.expandablerecyclerview.Model.ParentWrapper
Sets the ParentListItem to wrap.
setParentListItemExpandCollapseListener(ParentViewHolder.ParentListItemExpandCollapseListener) - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
shouldItemViewClickToggleExpansion() - Method in class com.bignerdranch.expandablerecyclerview.ViewHolder.ParentViewHolder
Used to determine whether a click in the entire parent View should trigger row expansion.
C E G I M N O P S 
Skip navigation links