title: Android button TouchListener vertical motion
body: <p>I use it <strong>TouchListener</strong></p>
  
  <pre><code>private final class MyTouchListener implements OnTouchListener {
      public boolean onTouch(View view, MotionEvent motionEvent) {
  
          if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
              ClipData data = ClipData.newPlainText("", "");
              DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(
                      view);
              view.startDrag(data, shadowBuilder, view, 0);
              view.setVisibility(View.INVISIBLE);
              return true;
          } else {
              return false;
          }
      }
  }
  </code></pre>
  
  <p>to make drag and drop for button.
  How to change it for what motion was only in the vertical direction?</p>