how to remove setOnGenericMotionListener() ?
view.setOnGenericMotionListener(this);
Thanks
This should work, depending on your use-case.
view.setEnabled(false);
An alternative could be making the overrides in the OnGenericMotionListener do nothing.
EDIT: As mentioned by @Slaw, view.setOnGenericMotionListener(null)
also works, and if I had to guess is probably what you want to use.