I have EditText
which is connected with TextWatcher
I'm monitoring when user presses @
letter. That will make a Listview
appear with names of commentators on particular post. When user chooses one of the users from ListView
, name is append
to EditText
and ListView
is hidden.
But the problem is when user continues typing ListView
will appear again because afterTextChanged(Editable s)
monitors the whole inputted text which already contains
letter @
.
Is there a way to monitor only what user is actually typing not the whole inputed text? Or somehow escape last inputed word in TextWatcher
? Or any other suggestions how to solve this.
I was researching but didn't find anything useful. Thanks in advance