How do you programmatically remove selection from an EditText? I tried:
myEditText.setSelection(selectionEnd);
but it just creates a selection of 0 lengths at the end of the current selection. I also tried Selection.removeSelection(mySpannable)and it just puts an empty selection at the beginning of the text.
source
share