I\'m using an OnItemClickListener and an OnItemLongClickListener in a ListView, now i\'m searching a way to detect the release action after the OnItemLongClick, what\'s the
Take a look here () (mainly here, you should be looking for ACTION_UP
):
public static final int ACTION_UP
Added in API level 1 getAction() value: the key has been released.
Constant Value: 1 (0x00000001)
Something like:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.ACTION_UP) {
// do something on ACTION_UP.
return true;
}
return super.onKeyDown(keyCode, event);
}