I have an application that uses TextView with scrolling and it has a
very annoying effect that dims the text when touch based scrolling is
used so you can barely see the text you are trying to scroll. (Same
effect in the emulator when you click the mouse and scroll).

I'm not sure where this effect is coming from or how to get rid of it.
(I have a guess that it may have something to do with text selection
for copy/paste?) Anyone know how to help?

More info:

TextView is nested in LinearLayout like so:
...
        <TextView android:layout_height="wrap_content" android:id="@+id/text"
                android:scrollbars="vertical" android:scrollHorizontally="true"
                android:textSize="10sp" android:typeface="monospace"
                android:layout_width="fill_parent" android:layout_weight="1"></
TextView>
...

In onCreate() I make the TextView scollable like so:
        TextView tv = (TextView) findViewById(R.id.text);
        tv.setMovementMethod(ScrollingMovementMethod.getInstance());

Note that when I nest TextView in a ScrollView (and disable scrolling
on the TextView) it does not dim and works nicely... only problem is
that ScrollView doesn't support horizontal scrolling of TextView which
I need.

You can download beta1 of RoboTop though the Market to see what I
mean.
Full source is available here: http://www.kfold.com/m/RoboTop-beta1.zip


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to