title: Change view height in onTouch ACTION_MOVE
body: <p>I would like to change view height when user move finger down on screen.</p>
  
  <pre><code>    new OnTouchListener() {
          float lastY = Float.MIN_VALUE;
  
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              if ((event.getAction() &amp; MotionEvent.ACTION_MASK) == MotionEvent.ACTION_MOVE) {
                  if (lastY != Float.MIN_VALUE) {
                      final float dist = event.getRawY() - lastY;
  
                      myView.post(new Runnable() {
                          @Override
                          public void run() {
                              ViewGroup.LayoutParams lp = myView.getLayoutParams();
                              lp.height += dist;
                              myView.setLayoutParams(lp);
                          }
                      });
  
                      view.invalidate();
                  }
                  lastY = event.getRawY();
              }
  
              if ((event.getAction() &amp; MotionEvent.ACTION_MASK) == MotionEvent.ACTION_UP) {
                  lastY = Float.MIN_VALUE;
              }
  
              return true;
          }
      }
  </code></pre>
  
  <p>But view height changes only when user stops moving finger!  </p>
  
  <p>How to change view height immediately when ACTION_MOVE occurred?</p>