Skip to content

v2.5.0

Choose a tag to compare

@mikepenz mikepenz released this 06 Apr 14:12
· 994 commits to develop since this release

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