How to Select All Text in an EditText on Focus
added in API Level 1If text is selectable, select it all when the view takes focus.
(TextView: Doesn't seem to work for a TextView. )
1. Create an Android project, if you don't already have one.
3. In the main.xml file, add the code below.
...
android:selectAllOnFocus = "true"
/>
4. Compile and run!
Related Articles:
Resources:
http://developer.android.com/reference/android/R.attr.html#selectAllOnFocus