@@ -0,0 +1,1409 @@
+package org.app.material.widget;%0A%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.support.v7.widget.helper.ItemTouchHelper;%0A%0Apublic class ItemTouchHelperClass extends ItemTouchHelper.Callback %7B%0A%0A    private ItemTouchHelperAdapter adapter;%0A%0A    public interface ItemTouchHelperAdapter %7B%0A%0A        void onItemMoved(int fromPosition, int toPosition);%0A%0A        void onItemRemoved(int position);%0A    %7D%0A%0A    public ItemTouchHelperClass(ItemTouchHelperAdapter ad)%7B%0A        this.adapter = ad;%0A    %7D%0A%0A    @Override%0A    public boolean isLongPressDragEnabled() %7B%0A        return true;%0A    %7D%0A%0A    @Override%0A    public boolean isItemViewSwipeEnabled() %7B%0A        return true;%0A    %7D%0A%0A    @Override%0A    public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) %7B%0A        int upFlags = ItemTouchHelper.UP %7C ItemTouchHelper.DOWN;%0A        int swipeFlags = ItemTouchHelper.START %7C ItemTouchHelper.END;%0A%0A        return makeMovementFlags(upFlags, swipeFlags);%0A    %7D%0A%0A    @Override%0A    public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) %7B%0A        adapter.onItemMoved(viewHolder.getAdapterPosition(), target.getAdapterPosition());%0A        return true;%0A    %7D%0A%0A    @Override%0A    public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) %7B%0A        adapter.onItemRemoved(viewHolder.getAdapterPosition());%0A    %7D%0A%7D

Update item helper recycler view class