I’m replacing some text in an EditText, then I want to move the cursor to the end of the current text input. It kind of seems to work – when I start typing again, the cursor seems to be at the end of the EditText, but it doesn’t flash / blink anymore. I have to touch the EditText again for the cursor to start blinking again. Am I doing it wrong?:
editText.setSelection(editText.getText().length()-1);
Thanks
One trick I used was setting the text to “” and then appending the entire string I wanted.
i.e.
This seems to place the cursor in the right place for me.