Try this:
UPDATE:
Kotlin:
editText.setSelection(editText.length())//placing cursor at the end of the text
Java:
editText.setSelection(editText.getText().length());
More Related Contents:
- Why does my app crash in the emulator?
- Translate java widget to kotlin [duplicate]
- Room database created in Kotlin, activity written in Java, can I do that?
- Formatting Double to String? [duplicate]
- Unfortunately MyApp has stopped. How can I solve this?
- Why does my function that calls an API return an empty or null value?
- Alarm Manager Example
- The AsyncTask API is deprecated in Android 11. What are the alternatives?
- How to make an Android device vibrate? with different frequency?
- The specified child already has a parent. You must call removeView() on the child’s parent first (Android)
- Limit Decimal Places in Android EditText
- Why does my function that calls an API or launches a coroutine return an empty or null value?
- Convert seconds value to hours minutes seconds?
- android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify
- onActivityResult() not called in new nested fragment API
- Android Get Current timestamp?
- How to get data from each dynamically created EditText in Android?
- how to access downloads folder in android?
- How to save an image in Android Q using MediaStore?
- How to make EditText not focused when creating Activity
- unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
- How to highlight Multiple words in EditText?
- Android app in Eclipse: Edit text not showing on Graphical layout
- How to exclude an element from a Firestore query?
- What is the best way to declare on UI component in android with Kotlin?
- Android Failed to instantiate one or more classes
- How I can use callback in Kotlin?
- How can I get the average color of an image?
- Duplicate class in Kotlin Android
- How to hide the soft keyboard inside a fragment?