setHapticFeedbackEnabled在androi的作用

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

代码在:launcher

launcher-》setupViews方法

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

原文地址:https://www.cnblogs.com/canphp/p/2708519.html