Hi,
I'm trying to get the start and end position of a selection in an
EditText, using:
getSelectionStart()
getSelectionEnd()
but the results are not what I expected when the user has selected
only a portion of the text. For example, if the text in the field is
"ABCDEFG", and the user select
Maybe more of an FYI than a question, but in playing around with
setSelection() with an EditText, it appears that:
- setting the position to anything above 0 works as expected, i.e.
mText.setSelection(3) puts the cursor at position three, but;
- setting the position to 0, i.e. the top-left positio
2 matches
Mail list logo