使其在触摸的时候没有触感反馈。接着设置长按事件的监听。

代码在:launcher

launcher-》setupViews方法

// Setup the workspace
mWorkspace.setHapticFeedbackEnabled(false);
mWorkspace.setOnLongClickListener(this);
mWorkspace.setup(dragController);
dragController.addDragListener(mWorkspace);

代码在:launcher

launcher-》setupViews方法

// Setup the workspace
mWorkspace.setHapticFeedbackEnabled(false);
mWorkspace.setOnLongClickListener(this);
mWorkspace.setup(dragController);
dragController.addDragListener(mWorkspace);

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2021-12-25
  • 2021-12-06
  • 2021-12-06
  • 2021-12-21
  • 2021-12-21
  • 2021-05-15
猜你喜欢
  • 2022-12-23
  • 2022-01-09
  • 2021-05-28
  • 2021-08-28
  • 2021-09-13
  • 2021-11-09
相关资源
相似解决方案