多点触控拖放android

时间:2013-03-16 08:33:55

标签: android drag-and-drop multi-touch

我想在我的Android应用程序中进行多点触控拖放 我的需求是当用户使用两个手指然后只应该拖动。单个数字没有拖动。
我怎么能做到这一点?
我的代码看起来像这样

      if (pointerCount == 2) {

            switch (motionEvent.getAction() & MotionEvent.ACTION_MASK) {

            case MotionEvent.ACTION_DOWN:
             //what should i write here?
                 break;
            case MotionEvent.ACTION_MOVE:
             //what should i write here?

我应该为每个事件案例写些什么 任何有用的链接?

0 个答案:

没有答案
相关问题