Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: how to get rid of scrollView's "fading edge"

I'm having a problem with a text view embedded in a ScrollView. That is, when I scroll the text a thin orange line briefly appears to show that I've gone as far as a can in a particular direction. I've tried a couple of things like "android:fadingEdge="none" and setting the background color, but it's just staying there.

How do I get rid of or control these "end of scroll" colors?

like image 871
Jack BeNimble Avatar asked Jun 15 '11 00:06

Jack BeNimble


1 Answers

What you're seeing isn't the "fading edge" normally shown while you're scrolled into content, it's the "over-scroll" effect in Gingerbread and newer. From your XML you can set android:overScrollMode to "always", "never", or "ifContentScrolls".

"always" and "never" should be self-explanatory, "ifContentScrolls" will only show the effect if the content does not fully fit within the view without scrolling.

like image 74
adamp Avatar answered Oct 04 '22 17:10

adamp