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

C

ChildViewHolder<C> - Class in com.bignerdranch.expandablerecyclerview
ViewHolder for a child list item.
ChildViewHolder(View) - Constructor for class com.bignerdranch.expandablerecyclerview.ChildViewHolder
Default constructor.
collapseAllParents() - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Collapses all parents in the list.
collapseParent(P) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Collapses the parent associated with a specified P in the list of parents.
collapseParent(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Collapses the parent with the specified index in the list of parents.
collapseParentRange(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Collapses all parents in a range of indices in the list of parents.
collapseView() - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
Triggers collapse of the parent.
com.bignerdranch.expandablerecyclerview - package com.bignerdranch.expandablerecyclerview
 
com.bignerdranch.expandablerecyclerview.model - package com.bignerdranch.expandablerecyclerview.model
 

E

equals(Object) - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 
ExpandableRecyclerAdapter<P extends Parent<C>,C,PVH extends ParentViewHolder,CVH extends ChildViewHolder> - Class in com.bignerdranch.expandablerecyclerview
RecyclerView.Adapter implementation that adds the ability to expand and collapse list items.
ExpandableRecyclerAdapter(List<P>) - Constructor for class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Primary constructor.
ExpandableRecyclerAdapter.ExpandCollapseListener - Interface in com.bignerdranch.expandablerecyclerview
Allows objects to register themselves as expand/collapse listeners to be notified of change events.
ExpandableWrapper<P extends Parent<C>,C> - Class in com.bignerdranch.expandablerecyclerview.model
Wrapper used to link metadata with a list item.
ExpandableWrapper(P) - Constructor for class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
Constructor to wrap a parent object of type P.
ExpandableWrapper(C) - Constructor for class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
Constructor to wrap a child object of type C
expandAllParents() - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Expands all parents in the list.
expandParent(P) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Expands the parent associated with a specified P in the list of parents.
expandParent(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Expands the parent with the specified index in the list of parents.
expandParentRange(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Expands all parents in a range of indices in the list of parents.
expandView() - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
Triggers expansion of the parent.

G

getChild() - Method in class com.bignerdranch.expandablerecyclerview.ChildViewHolder
 
getChild() - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 
getChildAdapterPosition() - Method in class com.bignerdranch.expandablerecyclerview.ChildViewHolder
Returns the adapter position of the Child associated with this ChildViewHolder
getChildList() - Method in interface com.bignerdranch.expandablerecyclerview.model.Parent
Getter for the list of this parent's child items.
getChildList() - Method in class com.bignerdranch.expandablerecyclerview.model.SimpleParent
 
getChildViewType(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Return the view type of the child parentPosition contained within the parent at parentPosition for the purposes of view recycling.
getItemCount() - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Gets the number of parents and children currently expanded.
getItemViewType(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
getParent() - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 
getParent() - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
 
getParentAdapterPosition() - Method in class com.bignerdranch.expandablerecyclerview.ChildViewHolder
Returns the adapter position of the Parent associated with this ChildViewHolder
getParentAdapterPosition() - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
Returns the adapter position of the Parent associated with this ParentViewHolder
getParentList() - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Gets the list of parents that is backing this adapter.
getParentViewType(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Return the view type of the parent at parentPosition for the purposes of view recycling.
getWrappedChildList() - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 

H

hashCode() - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 

I

isExpanded() - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 
isExpanded() - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
Returns expanded state for the Parent corresponding to this ParentViewHolder.
isInitiallyExpanded() - Method in interface com.bignerdranch.expandablerecyclerview.model.Parent
Getter used to determine if this Parent's View should show up initially as expanded.
isInitiallyExpanded() - Method in class com.bignerdranch.expandablerecyclerview.model.SimpleParent
 
isParent() - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 
isParentInitiallyExpanded() - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 
isParentViewType(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Used to determine whether a viewType is that of a parent or not, for ViewHolder creation purposes.

M

mFlatItemList - Variable in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
A List of all currently expanded parents and their children, in order.

N

notifyChildChanged(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent at parentPosition has a child located at childPosition that has changed.
notifyChildInserted(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent reflected at parentPosition has a child list item that has been newly inserted at childPosition.
notifyChildMoved(int, int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the child list item contained within the parent at parentPosition has moved from fromChildPosition to toChildPosition.
notifyChildRangeChanged(int, int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent at parentPosition has itemCount children starting at childPositionStart that have changed.
notifyChildRangeInserted(int, int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent reflected at parentPosition has itemCount child list items that have been newly inserted at childPositionStart.
notifyChildRangeRemoved(int, int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent located at parentPosition has itemCount children that have been removed from the data set, previously located at childPositionStart onwards.
notifyChildRemoved(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent located at parentPosition has a child that has been removed from the data set, previously located at childPosition.
notifyParentChanged(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent at parentPosition has changed.
notifyParentDataSetChanged(boolean) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the data set has changed.
notifyParentInserted(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent reflected at parentPosition has been newly inserted.
notifyParentMoved(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parent and its children reflected at fromParentPosition has been moved to toParentPosition.
notifyParentRangeChanged(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the itemCount parents starting at parentPositionStart have changed.
notifyParentRangeInserted(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the currently reflected itemCount parents starting at parentPositionStart have been newly inserted.
notifyParentRangeRemoved(int, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the itemCount parents previously located at parentPositionStart have been removed from the data set.
notifyParentRemoved(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Notify any registered observers that the parents previously located at parentPosition has been removed from the data set.

O

onAttachedToRecyclerView(RecyclerView) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Implementation of Adapter#onAttachedToRecyclerView(RecyclerView).
onBindChildViewHolder(CVH, int, int, C) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Callback called from onBindViewHolder(RecyclerView.ViewHolder, int) when the list item bound to is a child.
onBindParentViewHolder(PVH, int, P) - Method in class com.bignerdranch.expandablerecyclerview.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.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, Parent) or ExpandableRecyclerAdapter.onBindChildViewHolder(ChildViewHolder, int, int, Object).
onClick(View) - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
View.OnClickListener to listen for click events on the entire parent View.
onCreateChildViewHolder(ViewGroup, int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Callback called from ExpandableRecyclerAdapter.onCreateViewHolder(ViewGroup, int) when the list item created is a child.
onCreateParentViewHolder(ViewGroup, int) - Method in class com.bignerdranch.expandablerecyclerview.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.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, int) or ExpandableRecyclerAdapter.onCreateChildViewHolder(ViewGroup, int).
onDetachedFromRecyclerView(RecyclerView) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Implementation of Adapter.onDetachedFromRecyclerView(RecyclerView)
onExpansionToggled(boolean) - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
Callback triggered when expansion state is changed, but not during initialization.
onParentCollapsed(int) - Method in interface com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter.ExpandCollapseListener
Called when a parent is collapsed.
onParentExpanded(int) - Method in interface com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter.ExpandCollapseListener
Called when a parent is expanded.
onRestoreInstanceState(Bundle) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Fetches the expandable state map from the saved instance state Bundle and restores the expanded states of all of the parents.
onSaveInstanceState(Bundle) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Stores the expanded state map across state loss.

P

Parent<C> - Interface in com.bignerdranch.expandablerecyclerview.model
Interface for implementing required methods in a parent.
parentCollapsedFromViewHolder(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Called when a ParentViewHolder has triggered a collapse for it's parent
parentExpandedFromViewHolder(int) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Called when a ParentViewHolder has triggered an expansion for it's parent
ParentViewHolder<P extends Parent<C>,C> - Class in com.bignerdranch.expandablerecyclerview
ViewHolder for a Parent 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.ParentViewHolder
Default constructor.

S

setChildList(List<C>) - Method in class com.bignerdranch.expandablerecyclerview.model.SimpleParent
 
setExpandCollapseListener(ExpandableRecyclerAdapter.ExpandCollapseListener) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
 
setExpanded(boolean) - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 
setExpanded(boolean) - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
Setter method for expanded state, used for initialization of expanded state.
setMainItemClickToExpand() - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
Sets a View.OnClickListener on the entire parent view to trigger expansion.
setParent(P) - Method in class com.bignerdranch.expandablerecyclerview.model.ExpandableWrapper
 
setParentList(List<P>, boolean) - Method in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Set a new list of parents and notify any registered observers that the data set has changed.
shouldItemViewClickToggleExpansion() - Method in class com.bignerdranch.expandablerecyclerview.ParentViewHolder
Used to determine whether a click in the entire parent View should trigger row expansion.
SimpleParent<C> - Class in com.bignerdranch.expandablerecyclerview.model
Simple implementation of the ParentListItem interface, by default all items are not initially expanded.
SimpleParent(List<C>) - Constructor for class com.bignerdranch.expandablerecyclerview.model.SimpleParent
 

T

TYPE_CHILD - Static variable in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Default ViewType for children rows
TYPE_FIRST_USER - Static variable in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Start of user-defined view types
TYPE_PARENT - Static variable in class com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
Default ViewType for parent rows
C E G H I M N O P S T 
Skip navigation links