There are two EditText,while loading the page a text is set in the first EditText, So now cursor will be in the starting place of EditText, I want
EditText
In kotlin, you could create an extension function like this:
fun EditText.placeCursorAtLast() { val string = this.text.toString() this.setSelection(string.length) }
and then simply call myEditText.placeCursorAtLast()
myEditText.placeCursorAtLast()