Guest User

Untitled

a guest
Jan 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. private void valuePastedInEditText() {
  2. yourEditText.addTextChangedListener(new TextWatcher() {
  3.  
  4. public void afterTextChanged(Editable s) {
  5. Log.d(TAG, "Something entered/pasted , Perform Your action");
  6. performYourAction();
  7. }
  8.  
  9. public void beforeTextChanged(CharSequence s, int start,
  10. int count, int after) {
  11. }
  12.  
  13. public void onTextChanged(CharSequence s, int start,
  14. int before, int count) {
  15. }
  16. });
  17. }
Add Comment
Please, Sign In to add comment