title: Recyclerview Drag and Drop ontouch
body: <p>I have used <code>ItemTouchHelper</code> to implement drag and drop in <code>recyclerview</code>. It works fine. But it is working only on long press. I need to do it with <code>onTouch</code></p>
  
  <pre><code>ItemTouchHelper.Callback itemTouchHelperCallback = new ItemTouchHelper.Callback() {
      public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {
          Collections.swap(strings, viewHolder.getAdapterPosition(), target.getAdapterPosition());
          adapter.notifyItemMoved(viewHolder.getAdapterPosition(), target.getAdapterPosition());
          return true;
      }
  
      @Override
      public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {
          //TODO
      }
  
     //defines the enabled move directions in each state (idle, swiping, dragging).
       @Override
       public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {
           return makeFlag(ItemTouchHelper.ACTION_STATE_DRAG,
               ItemTouchHelper.DOWN | ItemTouchHelper.UP | ItemTouchHelper.START | ItemTouchHelper.END);
           }
      };
  </code></pre>
  
  <p>This is the code I used. Please help me!!!</p>