You can try in your main.xml
file:
android:selectAllOnFocus="true"
Or, in Java, use
editText.setSelectAllOnFocus(true);
More Related Contents:
- I cannot change the inputType, hint anything for my EditText
- Last character taken twice by textwatcher
- How to stop EditText from gaining focus at Activity startup in Android
- Focusable EditText inside ListView
- How to show soft-keyboard when edittext is focused
- Put constant text inside EditText which should be non-editable – Android
- Outlined Edit Text from Material Design
- Disabling of EditText in Android
- How to create EditText with cross(x) button at end of it?
- Set Focus on EditText
- In Android EditText, how to force writing uppercase?
- Custom cut/copy action bar for EditText that shows text selection handles
- Change EditText hint color when using TextInputLayout
- How to change color / appearance of EditText select handle / anchor?
- Drawing multiple lines in edittext e.g. notepad
- Implementing Text Watcher for EditText
- EditText loses content on scroll in ListView?
- How to make EditText not editable through XML in Android?
- EditText in Listview loses focus when pressed on Android 4.x
- Android RecyclerView: Change layout file LIST to GRID onOptionItemSelected
- How to use EditText onTextChanged event when I press the number?
- Implementing a rich text editor in Android?
- Allow multi-line in EditText view in Android?
- Change background of EditText’s error message
- How to exclude special characters from android keypad for EditText
- How to programmatically hide/disable emoticons on Android soft keyboard
- Edit Text in ListActivity ListView loses focus when keyboard comes up
- null keyevent and actionid = 0 in onEditorAction() (Jelly Bean / Nexus 7)
- Android: Set Edit text or text view id Programmatically
- Android EditText listener for cursor position change