I am using a TextWatcher to keep track of edittext words. What I would like is to be able to detect when a word is written and then a character is added to the start of the word.
For example, I want to type “hello” and in the moment that “hello” is finished I need to add a “-” prefix, so the final word would be “-hello”.
I am not sure if this can be done with a TextWatcher. Can it, and if so, how?
If you want to detect a
wordthen you have to detect that the user haspressed the spacebutton upon this you can simply add thecharacterat thestart of the word