Skip to content

3.0.0

Compare
Choose a tag to compare
@sockeqwe sockeqwe released this 10 Oct 17:30
· 106 commits to master since this release
  • AdapterDelegate is now an abstract class (was a interface formerly)
  • Added the following methods to AdapterDelegate:
    • onBindViewHolder(@NonNull T items, int position, @NonNull RecyclerView.ViewHolder holder, @NonNull List<Object> payloads);: This method will be called for both adapter.notifyItemChanged() with or without payload. In Version 2.x of this library there was only one method onBindViewHolder(@NonNull T items, int position, @NonNull RecyclerView.ViewHolder holder). This one (with additional payload parameter) replaces the old one.
    • onViewRecycled(ViewHolder holder): Called when ViewHolder has been recycled
    • onFailedToRecycleView(ViewHolder holder): Called when ViewHolder couldn't be recycled
    • onViewAttachedToWindow(ViewHolder holder): Called when View (of ViewHolder) has been attached to window
    • onViewDetachedFromWindow(ViewHolder holder): Called when View (of ViewHolder) has been detached from window
  • changed visibility modifiers of methods of AdapterDelegate to protected (formerly public before because of interface)