http://blog.csdn.net/love_world_/article/details/8192531

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        
        MotionEvent eventClone = MotionEvent.obtain(event);
        eventClone.setAction(MotionEvent.ACTION_CANCEL);
        eventClone.offsetLocation(10, 20);
        super.onTouchEvent(eventClone);
    }

 

 

相关文章:

  • 2021-10-19
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2021-08-18
猜你喜欢
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
相关资源
相似解决方案