@@ -0,0 +1,1410 @@
+package com.cwainner.chris.recipecentral.util;%0A%0Aimport android.support.v7.widget.RecyclerView;%0Aimport android.support.v7.widget.helper.ItemTouchHelper;%0A%0A%0Apublic class SimpleItemTouchHelperCallback extends ItemTouchHelper.Callback %7B%0A    private final ItemTouchHelperAdapter adapter;%0A%0A    public SimpleItemTouchHelperCallback(ItemTouchHelperAdapter adapter)%7B%0A        this.adapter = 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        final int dragFlags = ItemTouchHelper.UP %7C ItemTouchHelper.DOWN;%0A        final int swipeFlages = ItemTouchHelper.START %7C ItemTouchHelper.END;%0A%0A        return makeMovementFlags(dragFlags, swipeFlages);%0A    %7D%0A%0A    @Override%0A    public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder source, RecyclerView.ViewHolder target) %7B%0A        if(source.getItemViewType() != target.getItemViewType())%7B%0A            return false;%0A        %7D%0A        adapter.onItemMove(source.getAdapterPosition(), target.getAdapterPosition());%0A        return true;%0A    %7D%0A%0A    @Override%0A    public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) %7B%0A        adapter.onItemDismiss(viewHolder.getAdapterPosition());%0A    %7D%0A%7D%0A

Create and populate SimpleItemTouchHelperCallback