I'm searching for a way to prevent the user from moving the cursor position anywhere. The cursor should always stay at the end of the current EditText value. In addition to that the user should not be able to select anything in the EditText. Do you have any idea how to realize that in Android using an EditText?
To clarify: the user should be able to insert text, but only at the end.
This will reset cursor focus to the last position of the text
This method will disable cursor move on touch
And You can use either the xml attribute
or the java function
to disable blinking cursor of edittext
Try this:
I had the same problem. This ended up working for me:
It sounds like the best way to do this is to make your own
CustomEditText
class and override/modify any relevant methods. You can see the source code forEditText
here.