• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How do I make textView text selectable

Engmex

Lurker
Hi I have a text view and I'm trying to make the text selectable. The docs say:
Use setTextIsSelectable(boolean) or the TextView_textIsSelectable XML attribute to make this TextView selectable
But I can't get it to work I tried
Code:
Tv.setTextIsSelectable(true);
and I get
The method setTextIsSelectable(boolean) is undefined for the type TextView
I tried
Code:
android:textIsSelectable="true"
in the xml and I get
No resource identifier found for attribute 'textIsSelectable' in package 'android'
What's going on? I'm baffled!
Regards
 
So, i have the same error:

error: No resource identifier found for attribute 'textIsSelectable' in package 'android'

Is there any body can help us?
Up!
 
It looks like setTextIsSelectable & android:textIsSelectable is only available in Honeycomb. If you look at this link, at the top right it says "Since: API Level 11". API 11 is 3.0 (Honeycomb).

What level are you developing for?
 
Back
Top Bottom