- selectable
- Whether the content of this TextView should be selectable.
Sets whether the content of this view is selectable by the user. The default is false, meaning that the content is not selectable.
When you use a TextView to display a useful piece of information to the user (such as a contact's address), make it selectable, so that the user can select and copy its content. You can also use set the XML attribute NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#TextView_textIsSelectable to "true".
When you call this method to set the value of textIsSelectable, it sets the flags focusable, focusableInTouchMode, clickable, and longClickable to the same value. These flags correspond to the attributes NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#View_focusable, NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#View_focusableInTouchMode, NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#View_clickable, and NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#View_longClickable. To restore any of these flags to a state you had set previously, call one or more of the following methods: Android.Views.View.Focusable, Android.Views.View.FocusableInTouchMode, Android.Views.View.Clickable or Android.Views.View.LongClickable.