Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void valuePastedInEditText() {
- yourEditText.addTextChangedListener(new TextWatcher() {
- public void afterTextChanged(Editable s) {
- Log.d(TAG, "Something entered/pasted , Perform Your action");
- performYourAction();
- }
- public void beforeTextChanged(CharSequence s, int start,
- int count, int after) {
- }
- public void onTextChanged(CharSequence s, int start,
- int before, int count) {
- }
- });
- }
Add Comment
Please, Sign In to add comment