@@ -0,0 +1,1816 @@
+package com.andela.voluminotesapp.callbacks;%0A%0A%0Aimport android.support.v7.widget.GridLayoutManager;%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.support.v7.widget.helper.ItemTouchHelper;%0A%0Apublic class SimpleItemTouchHelperCallback extends ItemTouchHelper.Callback %7B%0A%0A    private final ItemTouchHelperAdapter mAdapter;%0A%0A    public SimpleItemTouchHelperCallback(ItemTouchHelperAdapter adapter) %7B%0A        mAdapter = adapter;%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        if (recyclerView.getLayoutManager() instanceof GridLayoutManager) %7B%0A            final int dragFlags = ItemTouchHelper.UP %7C ItemTouchHelper.DOWN %7C ItemTouchHelper.LEFT %7C ItemTouchHelper.RIGHT;%0A            final int swipeFlags = 0;%0A            return makeMovementFlags(dragFlags, swipeFlags);%0A        %7D else %7B%0A            final int dragFlags = 0;%0A            final int swipeFlags = ItemTouchHelper.START %7C ItemTouchHelper.END;%0A            return makeMovementFlags(dragFlags, swipeFlags);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public float getMoveThreshold(RecyclerView.ViewHolder viewHolder) %7B%0A        mAdapter.onItemMove(viewHolder, viewHolder.getAdapterPosition());%0A        return super.getMoveThreshold(viewHolder);%0A    %7D%0A%0A    @Override%0A    public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder,%0A                          RecyclerView.ViewHolder target) %7B%0A        return true;%0A    %7D%0A%0A    @Override%0A    public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) %7B%0A        mAdapter.onItemDismiss(viewHolder.getAdapterPosition());%0A    %7D%0A%7D

Add OnItemTouchHelper class