I use onLongClick and onClick events of a button to get user inputs. Whenever; the user long click and triggers onLongClick event, the onClick event is also triggered. I couldn\
Solution On LongClick SingleClick will not work :
rippleView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //Your code } }); rippleView.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { return true; } });