I am trying to handle touch events and click events on a button. I do the following:
button.setOnClickListener(clickListener);
button.setOnTouchListener(touc
In ACTION_UP perform onClick manually using condition
boolean shouldClick = event.eventTime - event.downTime <= 200 // compares the time with some threshold
So, try within MotionEvent.ACTION_UP
if(event.eventTime - event.downTime <= 200) { // case or when statement of action Touch listener
view.performClick();
}