I have a EditText
. When I focus on it, all of the text is selected. When the user enters a character, the previous text (selected text) is removed and the new character is inserted in the EditText
.
I want to prevent removing the selected text when the user inserts character '='.
How can I do that?