Assuming, that a user has written some text into an EditText and thereafter touched somewhere else on the screen, which caused the cursor position to change: How can one determine the new cursor position?
Assuming, that a user has written some text into an EditText and thereafter touched
Share
The simple version:
If you want to react on an event you may try
eventallows to distinguish between presses and releases.EditTextalso has asetOnClickListener()that might be worth to look at.EDIT:
I forgot to mention
onSelectionChanged(int selStart, int selEnd)where selEnd equals selStart if the position changed.