Right now I use onFocusListener to automatically move the cursor to the end of the EditText string. This works fine when the box is being Focused, however, once focused if the user taps a position in the string, the cursor moves there. I’ve tried implementing other methods in addition to the Focus (Touch, Click) when I do, the cursor moves briefly to the end but then quickly to where the user clicked. Is there a way I can prevent the user from clicking the cursor position and have it automatically setSelection(EditText.getText().length())?
Share
1 Answer