Touch事件学习 - 修改MotionEvent的值

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);
    }

 

 

posted on 2013-02-25 18:50  屁屁侠  阅读(1483)  评论(0编辑  收藏  举报

导航