This release brings new interfaces, and many changes to the expandable behavior. There is now also a unbindView
method you have to implement for your IItem
s
Please read the migration guide: https://github.com/mikepenz/FastAdapter/blob/develop/MIGRATION.md
library
- add all add/remove/... method to the Filter so it is possible to alter the original list but still keep the filtering
- FIX #196
- fix endless loop in legacy mode
- add expand method to expand all collapsable items in the root item level
- improve
notifyAdapterSubItemsChanged
fix issue which occurs when deleting sub items - make the AdapterUtil generic
- improve ActionModeHelper and change the SubItemUtils to just use the minimal classes instead of the FastItemAdapter
- use the interface of the IItemAdapter instead of the implementation
- add method to get AdapterPosition by identifier
- only call the listeners if we did not consume the event.
- withParent is called by the
withSubItems
method in the parent container - implement AbstractExpandableItem …
- the
Item
in the AbstractItem no longer requires anAbstractItem
itself but an item which extendsIItem, IClickable
- expand / collapse has to happen after the selection was set as we would otherwise may select the wrong position
- implement new EventHook logic, to simplify listeners on views inside the item
- update support libs to 25
- update build tools to 25
- update compile sdk to 25
- update target sdk to 25
- Please also look at the changes and additions from the contributions below...
contributions
- migrate library extension items
- improve extension items bind
- implement unbind in AbstractItem
by @MFlisar
- ActionMode now shows selection count …
- added method to recheck ActionMode on demand (for updating after the selection count has changed manually)
- added the possibility to provide a custom TitleProvider
- small changes in the ActionModeHelper
- RangeSelectorHelper added …
- SubItemUtils added
- multi selection + expandable items + deletions + range selection example added
- SubItem handling improved (usage via SubItemUtils)
- added two way linking between IExpandable and ISubItem - little overhead, but big possible speed improvement
- examples adopted
- ISelectionListener added - NOT optimised yet, it is called mutliple times in some cases!
- selectAllSubItems
- Added sub items suppport to RangeSelectorHelper
- Drag&Drop improved
- Moved the custom drag handle setup to a utility class, must now be called manually in bindView of the IExtendedDraggable item
by @gpulido
- Solves index exception in HeaderHelper
by @meness
- New EndlessRecyclerOnTopScrollListener
by @Rainer-Lang
- few changes to "for" and "ArrayList"
by @gotev
- Update support lib to 24.2.1 and tools to 24.0.2
sample
- use the
AbstractExpandableItem
for the sample items - type all items in the
AdvancedSampleActivity
correctly - move click listener to the item, for the
CheckBoxSapmleItem