kotlin edittext cursor end

Get the EditText View

val editText = findViewById<EditText>(R.id.editText)

Set the Cursor at the End of the Text

editText.setSelection(editText.text.length)