TextWatcher runs multiple times on entering Return Key in EditText

Viewed 1120

I have a EditText with TextWatcher.


Scenario 1:

EditText containing "abcd"

If i press return key or enter newline

1) before the characters, TextWatcher fires 3 times.

2) in between the characters, TextWatcher fires 4 times.

3) at the end of the characters, TextWatcher fires 1 time.


Scenario 2:

EditText containing "1234"

If i press return key or enter newline

1) before the characters, TextWatcher fires 1 times.

2) in between the characters, TextWatcher fires 1 times.

3) at the end of the characters, TextWatcher fires 1 time.


Is this a bug?

Or is there any thing what i do not understand?


I want the text watcher to fire only once for all the scenario.

Any help will be highly appreciated.

2 Answers
Related