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

代码在:launcher

launcher-》setupViews方法

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

相关文章:

  • 2021-06-13
  • 2021-12-28
  • 2021-11-04
  • 2022-12-23
  • 2021-09-11
  • 2021-06-09
  • 2021-10-17
  • 2021-11-10
猜你喜欢
  • 2021-07-07
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2021-07-24
相关资源
相似解决方案