dispatchGesture如何在不取消手势的情况下添加更多手势?

时间:2018-11-23 14:17:25

标签: java

Path pathpre = new Path();
              pathpre.moveTo(500,500);
              GestureDescription.Builder Builder = new GestureDescription.Builder();
              Builder.addStroke(new GestureDescription.StrokeDescription(pathpre,0,10,true));
              dispatchGesture(Builder.build(),null,null);
              //do something here after that add gesture
              Path path = new Path();
              path.moveTo(600,600);
              Builder = new GestureDescription.Builder();
              Builder.addStroke(new GestureDescription.StrokeDescription(path,0,5000));
              dispatchGesture(Builder.build(),null,null);

按下第一个手势时,我想添加更多手势而不会取消 第一个手势

0 个答案:

没有答案