CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2016-11-04
by Krunal Patel

Original Post

Original - Posted on 2016-11-04
by Kinjal



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

try this and make log point in all case. imgShowOld.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: cstmEdtNewPasswordAgain.setTransformationMethod(HideReturnsTransformationMethod.getInstance()); break; case MotionEvent.ACTION_UP: cstmEdtNewPasswordAgain.setTransformationMethod(PasswordTransformationMethod.getInstance()); break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_POINTER_UP: break; default: break; } return true; } });
You implement the onTouchListener like this also:
> imageView.setOnTouchListener(this);
@Override public boolean onTouch(View v, MotionEvent event) { ImageView view = (ImageView) v; switch (view.getId()){ case R.id.img1: // example id switch (event.getAction()) { case MotionEvent.ACTION_DOWN: break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_UP: break; case MotionEvent.ACTION_CANCEL: break; } break; case R.id.img2: // example id switch (event.getAction()) { case MotionEvent.ACTION_DOWN: break; case MotionEvent.ACTION_MOVE: break; case MotionEvent.ACTION_UP: break; case MotionEvent.ACTION_CANCEL: break; } break; } return true; }

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