How to Select the Text in a TextView
added in API Level 11Indicates that the content of a non-editable TextView can be selected.
(An EditText is always selectable, so textIsSelectable is not necessary for an EditText.)
If you DO add android:textIsSelectable to a EditText the text IS selectable, but the field is NOT editable, nor is the cursor visible
1. Add a TextView in the main.xml file.
2. Ensure the minSDKVersion is set to 11.
3. In the main.xml file, add the code below.
...
android:textIsSelectable = "true"
/>
4. Compile and run!
Resources:
http://developer.android.com/reference/android/R.attr.html#textIsSelectable