touchHelper.attachToRecyclerView(null)
touchHelper = new ItemTouchHelper(itemTouchHelperCallback);
touchHelper.attachToRecyclerView(recyclerView);
new ItemTouchHelper(itemTouchHelperCallback).attachToRecyclerView(recyclerView);
ItemTouchHelper.SimpleCallback itemTouchHelperCallback = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT) {
@Override
public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {
adapter.deleteAt(viewHolder.getAdapterPosition());
}
MyAdapter adapter = new MyAdapter(answer);