github mikepenz/FastAdapter v3.0.0

latest releases: v5.7.0, v5.6.0, v5.5.1...
7 years ago

MIGRATION GUIDE

v3 is a major new release of the FastAdapter library and comes with a big refactor.

overview

  • a lot of cleanup, and minification
  • v3 is a lot lot smaller
  • faster by eliminating unnecessary overhead
  • new extension functionality, allowing more complex hooks into the FastAdapter
  • expandable is no longer core functionality and was moved to it's own module
  • the realm and firebase modules were removed

library

  • For a full changelog read the commit history please
  • implement new ModelAdapter, base ItemAdapter on modelAdapter
  • adjust all methods and add additional internal methods (which need to be implemented in the IItemAdapter)
  • Generic* is now Model*. to reflect more what it does.
  • ModelItemAdapter
  • ModelAbstractITem
  • reverse the filter method. true means it stays
  • the initial index of the EndlessRecclerOnScrollListener is now also 0
  • idDistributor will be on by default again to prevent unnecessary issues because people don't provide id's
  • Allow DiffUtil to calculate on background thread THANKS @ Aleksander Mielczarek
  • Move the type instance cache out of the adapter
    • The default implementation will use an shared cache for all fast adapter instances
    • Its now possible to implement an own caching solution for the type instances
  • provide a new FastAdapter.ViewHolder which allows the viewHolder to do the heavy work (the item can be even more dumb)
    • if FastAdapter.ViewHolder is used, the callbacks on the item are not used
  • add reverse interceptor
  • add new IAdapterNotifier allowing to adjust the code of notifying the adapter after a set happened

Don't miss a new FastAdapter release

NewReleases is sending notifications on new releases.