android-advancedrecyclerview v0.11.0 Release Notes

Release Date: 2017-10-29 // over 6 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
      }