android-advancedrecyclerview v0.11.0 Release Notes

Release Date: 2017-10-29 // over 2 years ago
  • [Breaking changes]

    • 🔄 Changed minimum SDK level to v14
    • 🆕 New callbacks are added to SwipeableItemAdapter and DraggableItemAdapter

    [New features & improvements]

    • ⬆️ Bumped Support libraries to v27.0.0
    • A new callback onItemSwipeStarted() is added to SwipeableItemAdapter to reduce implicitly calls of the notifyDataSetChanged() method.

    Migration code:

      @Override
      public void onSwipeItemStarted(MyViewHolder holder, int position) {
          notifyDataSetChanged(); // or you can implement better invalidation code here
      }
    
    • 🆕 New callbacks onItemDragStarted() and onItemDragFinished() are added to DraggableItemAdapter to reduce implicitly calls of the notifyDataSetChanged() method.

    Migration code:

      @Override
      public void onItemDragStarted(int position) {
          notifyDataSetChanged(); // or you can implement better invalidation code here
      }
    
      @Override
      public void onItemDragFinished(int fromPosition, int toPosition, boolean result) {
          notifyDataSetChanged(); // or you can implement better invalidation code here
      }