[DEPRECATED]
Fixes #89, #108, #137, #138, #139, #157, #239, #241, #256, #262
notifyDataSetChanged()
called notifyParentDataSetChanged()
, please read the documentation for the method before considering using it.getChildItemList
to return a typed List instead of List<?>
ExpandableRecyclerAdapter
takes two more generic object types
ParentListItem
which includes the previous child typeonBindParentViewHolder
and onBindChildViewHolder
now give the specific object type specified in the classExpandableRecyclerAdapter
to avoid casting to ObjectgetListItem
, with generics it is now more sane to access mItemList
yourself if you need it in the subclassParentListItem
and ChildListItem
, this affects many getters and setters names to eliminate the item word. Some examples:
Parent
interface now has the method getChildList()
instead of getChildItemList()
ExpandableRecyclerAdapter
renamed method from getParentItemList()
to getParentList()
notifyParent...
instead of of notifyParentItem...
(Same for children)ExpandCollapseListener
has methods onParentExpanded
and onParentCollapsed
instead of onListItemExpanded
onParentListItemExpanded
and onParentListItemCollapsed
parentExpandedFromViewHolder
and parentCollapsedFromViewHolder
getParentViewType()
, getChildViewType()
, and isParentViewType()
added with default implementation for single view typeonCreateParentViewHolder()
and onCreateChildViewHolder()
to pass view type being createdParentViewHolder
package location modified from com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
to com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
ChildViewHolder
package location modified from com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
to com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
getParent()
getParentAdapterPosition()
getChild()
getParentAdapterPosition()
getChildAdapterPosition()
SimpleParentListItem
for quick implementation of ParentListItem interface (no need to override methods or subclass)getParentItemViewType()
, getChildItemViewType()
, and isParentViewType()
added with default implementation for single view typeonCreateParentViewHolder()
and onCreateChildViewHolder()
to pass view type being createdParentViewHolder
package location modified from com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
to com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
ChildViewHolder
package location modified from com.bignerdranch.expandablerecyclerview.Adapter.ExpandableRecyclerAdapter
to com.bignerdranch.expandablerecyclerview.ExpandableRecyclerAdapter
getParentListItem()
getParentAdapterPosition()
getChildListItem()
getParentAdapterPosition()
getChildAdapterPosition()
ExpandableRecyclerAdapter.expandParentRange
so that a subset of parents in a list can be expanded at once with one callExpandableRecyclerAdapter.collapseParentRange
so that a subset of parents in a list can be collapsed at once with one callnotifyDatasetChanged
methods
ExpandableRecyclerAdapter.notifyParentItemRangeRemoved
to notify the RecyclerView when a subset of parents is removedExpandableRecyclerAdapter.notifyParentItemRangeChanged
to notify the RecyclerView when a subset of parents is changedExpandableRecyclerAdapter.notifyChildItemRangeInserted
to notify the RecyclerView when a subset of children is insertedExpandableRecyclerAdapter.notifyChildItemRangeRemoved
to notify the RecyclerView when a subset of children is removedExpandableRecyclerAdapter.notifyChildItemRangeChanged
to notify the RecyclerView when a subset of children is changedExpandableRecyclerAdapter.notifyParentItemMoved
to notify the RecyclerView when a parent's adapter position is changedExpandableRecyclerAdapter.notifyChildItemMoved
to notify the RecyclerView when a child's adapter position is changednotifyChildItemChanged
and notifyParentItemChanged
, previously child objects were not being replacedParentObject
is now named ParentListItem
.ExpandableRecyclerAdapter#mHelperItemList
now has protected
visibility and is named mItemList
. This List
can be used to gain access to all expanded list items.ParentItemClickListener
is now ParentViewHolder.ParentListItemExpandCollapseListener
.ExpandableRecyclerAdapter.ExpandCollapseListener
.notifyParentItem
or notifyChildItem
setChildObjectList
from ParentListItem
interface.ParentViewHolder
now has methods used for implementing that behavior in your own subclasses (examples given in the samples with this library).Initial Release