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()) ;
Was it helpful?

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"
        ...
>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top