github mikepenz/FastAdapter v2.5.0

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

MIGRATION

  • If you use the MaterialDrawer or the AboutLibraries you will need a compatible release of those for it to work
  • The FACTORY within the items is no longer required and replaced by a much simpler approach. Remove the old FACTORY and it's methods, and implement the getViewHolder method
@Override
public ViewHolder getViewHolder(View v) {
    return new ViewHolder(v);
}
  • If you implemented your own Item using the IItem interface instead the AbstractItem you will now also have to implement
    • attachToWindow and
    • detachFromWindow
  • The reflection based GenericItemAdapter CTOR (with the 2 classes as overload) was removed. Please use the CTOR using a Function
new GenericItemAdapter<>(new Function<Model, Item>() {
            @Override
            public Item apply(Model model) {
                return new Item(model);
            }
});

library

  • as mentioned above
    • removed ViewHolderFactory, please implement getViewHolder()
    • removed reflection based GenericItemAdapter ctor, please use the one with the Function
  • implement new attachTo- & detachFrom- window listeners to allow you a even more fine controlled optimization of your rv's

Don't miss a new FastAdapter release

NewReleases is sending notifications on new releases.