CopyPastor

Detecting plagiarism made easy.

Score: 0.7586804032325745; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-01-26
by Amas

Original Post

Original - Posted on 2017-06-14
by Anmol



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can use `onLongClickListener`:
Button button; button = findViewById(R.id.<your_button_id>); button.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View view) { //your code goes here return false; } });
btn1.setOnLongClickListener(this);
and impliment your class with `View.OnLongClickListener`
and then override this method
@Override public boolean onLongClick(View view) { switch(view.getId()){ case R.id. : break; } return false; }


        
Present in both answers; Present only in the new answer; Present only in the old answer;