- Change
onListItemExpanded
andonListItemCollapsed
to be called after list is updated, fixes bug in issue #112
- Fix
notifyChildItemChanged
andnotifyParentItemChanged
, previously child objects were not being replaced
- Fix crash occurring when using notifyParentItemRangeInserted to add a group of items at the end of the list
For a migration guide from 1.0.3 to 2.0.0, see here.
- Significant renaming/reorganizing of library
ParentObject
is now namedParentListItem
.ExpandableRecyclerAdapter#mHelperItemList
now hasprotected
visibility and is namedmItemList
. ThisList
can be used to gain access to all expanded list items.ParentItemClickListener
is nowParentViewHolder.ParentListItemExpandCollapseListener
.
- Fleshed out Javadocs.
- Added ability to specify if a parent should be expanded initially.
- Added ability to expand and collapse list items programmatically (without relying on a click event).
- Added
ExpandableRecyclerAdapter.ExpandCollapseListener
. - Added horizontal linear sample project, demoing many of the new features in 2.0.0.
- Added ability to notify the adapter of changes to the parent list items and child items. Methods begin with
notifyParentItem
ornotifyChildItem
- Note: RecyclerView.Adapter's notify methods will not work correctly with this adapter.
- Reorganized sample project.
- Removed
setChildObjectList
fromParentListItem
interface. - Removed inaccurate "stable" id map.
- Removed application tag from manifest.
- Removed animation and click handling details from the adapter,
ParentViewHolder
now has methods used for implementing that behavior in your own subclasses (examples given in the samples with this library). - README updates
- Added usage instructions for new features.
- Updated references to the library where naming has changed.
- Bug fixes: #42, #46, #47
- Initial Version