I think you can use getSelectionStart/End functions to get cursor position.
On Nov 18, 4:18 pm, Alex B <[EMAIL PROTECTED]> wrote: > Hi! > > How does one determine the cursor position in an > android.widget.EditText text view? > > Example: > > User types: "quick browm fox". > > User realizes the typo (browm). > > User touches the text view just after the "m", thereby positioning the > cursor there. > > Now the view looks like this: "quick browm| fox" -- where | is the > cursor. > > The user should be able to press a virtual "backspace" button (on the > screen), and expect to erase the "m" and then type "n". > > Problem: > > I would like to obtain the cursor position with something like > getCursorPosition(), but cannot find anything resembling such a > method. Knowing the position, I would be able to convert the EditText > into android.text.Editable and erase the character. > > Perhaps there is a different way to do this. Any information in this > regard will be greatly appreciated. > > Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

