[android-developers] Cursor position in EditText?

2009-08-02 Thread Mark Wyszomierski
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

[android-developers] Cursor Position in EditText

2011-01-12 Thread Paul
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