title: Moving imageview with touch event
body: <p>I just want a simple thing. I have a <code>imageview</code> and I can move it with touch </p>
  
  <p>This is my code, I'm sorry if this wrong because I just tried it myself</p>
  
  <pre><code>img.setOnTouchListener(new View.OnTouchListener() {
      @Override
      public boolean onTouch(View arg0, MotionEvent arg1) {
          // TODO Auto-generated method stub
          if (arg1.getAction() == MotionEvent.ACTION_DOWN) {
              status = StartDrag;
          } else if (arg1.getAction() == MotionEvent.ACTION_UP) {
              status = StopDrag;
          }
          return false;
      }
  });
  
  @Override
  public boolean onTouchEvent(MotionEvent event) {
      // TODO Auto-generated method stub
  
      if (status == StartDrag) {
          params.leftMargin = (int) event.getX();
          params.topMargin = (int) event.getY();
          img.setLayoutParams(params);
      }
      return super.onTouchEvent(event);
  }
  </code></pre>
  
  <p>Can you show me the right way please?</p>