Question

I created a textview that if the text is to long it will make it scrollable. However if you click on it or hold your finger on it, it will turn black like its been clicked. does anyone know the code to make it not click-able but still be able to scroll? thank you!

defined the rest in my xml:

 TextView Dark=(TextView)findViewById(R.id.Quote); 
 Dark.setMovementMethod(new ScrollingMovementMethod()) ;
Était-ce utile?

La solution

Just disable the TextView (enabled=false) and it will still be scrollable. To overcome the gray text that shows by default in a disabled TextView, set the textColor explicitly.

<TextView
        ...
        android:enabled="false"
        android:textColor="#FFFFFFFF"
        ...
>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top