Skip to content Skip to sidebar Skip to footer

Indexoutofboundexception : Setspan (2...2) Ends Beyond Length 1

I've a MultiAutoCompleteTextView custom control in which I am creating chips text, when user presses the space key. I do not want the user to input space initially when the textbox

Solution 1:

try using this

setSelection(s.length() - 1);

Post a Comment for "Indexoutofboundexception : Setspan (2...2) Ends Beyond Length 1"